Thanks, guys, for your help! Now my code is working all right! I tried both options and worked well.
Maybe the final code (by using Win API) is helpful to somebody else, so, it is below.
Thanks again,
Sergio
//----------------------------------------
// *** get locahost's name
char...
Hello,
Any clues on how to get the IP address of the computer that runs the code?
I am coding an application that should show the IP in its main window for user's information.
Thanks,
Sergio
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.