Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12471 Discussions

Niche Stack - how to read dhcp address obtained from dhcp?

Altera_Forum
Honored Contributor II
854 Views

I am running SimpleSocketServer and cannot find where the IP obtained from dhcp server is stored? Thank you in advance

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
122 Views

For the first net, probably here: 

nets[0]->n_ipaddr,  

nets[0]->snmask,  

nets[0]->n_defgw
Altera_Forum
Honored Contributor II
122 Views

If you are using the Nios II console , you can see the DHCP address from the print out , somewhere between the "AutoNegotiation start" and "Simple Socket Server starting up ...".

Altera_Forum
Honored Contributor II
122 Views

I wanted to show it on lcd, thank you

Reply