This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to get DHCP IP address



I have a working TCP client on the Tiva TM4C1294. It currently runs RTOS and uses DHCP to get its own IP address and prints it out to the console. I made it out of the example TCPecho code.

What I want to do is have the Tiva be able to access its own address within my program. Is there a way to do that? I don't get anything through getsockname(), but possibly im not using it correctly