Forum Discussion
Altera_Forum
Honored Contributor
16 years agoThis won't work. Setting a hostname will not communicate the hostname to the outside world, it's just a local setting for the IP stack. You have several ways of doing what you want:
- set up the DHCP server so that it always assign the same fixed IP address to your board's MAC address, and set that IP address in your DNS server. - set up a dynamic zone in your DNS server, have your board connect to it and fix its address (that maybe the closest to what you want to do). You would need to write a dynamic DNS client on your board, have a look at this page (http://en.wikipedia.org/wiki/dynamic_dns) for more information. - have your board regularly broadcast a simple UDP packet saying "I'm here!" and have a software on the other side pick up the packet and get the IP address