Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
738 Views

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

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

0 Kudos
3 Replies
Highlighted
Valued Contributor III
6 Views

For the first net, probably here: 

nets[0]->n_ipaddr,  

nets[0]->snmask,  

nets[0]->n_defgw
0 Kudos
Highlighted
Valued Contributor III
6 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
Highlighted
Valued Contributor III
6 Views

I wanted to show it on lcd, thank you

0 Kudos