Problem with remote IP

  • Thread starter Thread starter Taptu¶
  • Start date Start date
T

Taptu¶

Hello

I have problem with determining remote IP. How can I get IP of remote
machine if I had them name like: //Comp1

Thanks

Taptu¶
 
Taptu¶ said:
I have problem with determining remote IP. How can I get IP of remote
machine if I had them name like: //Comp1

Check the docs for gethostbyname() and getaddrinfo().

Regards,
Will
 
Check the docs for gethostbyname() and getaddrinfo().


It doesn't work :( I try this and for example when I want to find out IP of
local machine Azazel gethostbyname() was looking up for Azazel.com :(((((

Regards
Taptu¶
 
Taptu¶ said:
It doesn't work :( I try this and for example when I want to find out IP of
local machine Azazel gethostbyname() was looking up for Azazel.com :(((((

If you type

ipconfig

at the command prompt on the local machine do you see the correct IP
address?

Regards,
Will
 
U¿ytkownik "William DePalo said:
If you type

ipconfig

at the command prompt on the local machine do you see the correct IP
address?

Yes - and now what ?
I must finish this program today and i have no concept :(((((((


Regards,
Taptu¶
 
Taptu¶ said:
Yes - and now what ?
I must finish this program today and i have no concept :(((((((

Sorry, but I don't know what to tell you. It is hard to imagine that
gethostbyname() could be broken.

If you are out of ideas, you might want to start with sample code that works
like that found in the simple client server sample in the Platform SDK at

samples\netds\WinSock\simple

Regards,
Will
 
Back
Top