How can my application know at run time what IP address was assigned to it by the DHCP server?
Thanks.
Yes, I've been printing out localm[NETIF_ETH]. Just found the problem, I was printing out localm[NETIF_ETH] too soon. I had to wait a couple of seconds until the DHCP process completed then localm[NETIF_ETH] holds the IP address. Thanks for the suggestion.