Hi,
I need to obtain the local ip address of a PC
e.g.
192.168.0.100
I have tried using gethostbyname() function, but can only get the name, not the ip address.
struct hostent *name;
name = gethostbyname("localhost");
m_ip.SetWindowText(name->h_name);
Please help!
Compile VC++ Platform win xp pro