Hi...
I use VC++6.0, xp os.
I want to get my pc address by program, how to do it ?
Every suggestions is appreciated !
wxuf
Printable View
Hi...
I use VC++6.0, xp os.
I want to get my pc address by program, how to do it ?
Every suggestions is appreciated !
wxuf
You can use gethostname and then gethostbyname to get ur system IP address. Take a look at Platform SDK: Windows Sockets 2
Additionally look at the following FAQ...
I'm using JAVA as the programming language. I connect 3 pc through hub. 1 pc is the main pc to control the other 2. Can you teach me how to get the 2 pc's ip address from the main pc. Is it using gethostname or gethostnameby?
Your answer is really appreciated.