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++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

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

Altera_Forum
Honored Contributor II
848 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
116 Views

For the first net, probably here: 

nets[0]->n_ipaddr,  

nets[0]->snmask,  

nets[0]->n_defgw
Altera_Forum
Honored Contributor II
116 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
116 Views

I wanted to show it on lcd, thank you

Reply