Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    For the first net, probably here:

    nets[0]->n_ipaddr,

    nets[0]->snmask,

    nets[0]->n_defgw
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 ...".