Altera_Forum
Honored Contributor
16 years agoHelp please. Setting a host name innichestack
I am develping an application based on the Simple Socket Server example and it works fine with a static IP address. I want to use DHCP in the final design, but have a problem in that the only connection to the software is via IP/socket. I have no other way of communicating the IP address to the 'outside world' (in the SSS example the IP address gets output over UART and you can then connect to this IP manually - but I won't have UART enabled and want to automate the connection)
I'm new to NIOS and Nichestack (and DHCP) come to that. Is there a simple way that I can get the Nios II code to identify itself - perhaps by setting the host name - so that I can then interrogate the DNS server to retrieve the IP address from the 'client end' machine? Many thanks in advance for any assistance!