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

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

Altera_Forum
Honored Contributor II
1,030 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
298 Views

For the first net, probably here: 

nets[0]->n_ipaddr,  

nets[0]->snmask,  

nets[0]->n_defgw
0 Kudos
Altera_Forum
Honored Contributor II
298 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 ...".

0 Kudos
Altera_Forum
Honored Contributor II
298 Views

I wanted to show it on lcd, thank you

0 Kudos
Reply