Altera_Forum
Honored Contributor
19 years agoRetrieve the IP address (DHCP)
Hi,
My application is similar to the examples found with the Nios II IDE (simple_socket_server...). It is based on microC/OS-II and NicheStack. Bassically, I send/receive UDP packets to/from the Cyclone FPGA. In the network_utilitities.c file, I have the get_ip_addr routine that is called by InterNiche. When I run the application, I can see on the IDE console the IP address obtained with DHCP: Acquired IP address via DHCP client for interface: et1 IP address : 192.168.68.197 Is there a function that I can call in my application to get this IP address value? Thanks Martin