invoke gethostname, addr szMyHostName, 25

when i use this code the return is host name right?
well, when i am not connected on the net shouldnt i suppose
to get "localhost" in my variable?
i always get the computer name entered in windows

so how to get the "localhost" when i am offline or
a real hostname (the one that is given to me by my ISP)
when i am connect on internet
Posted on 2002-01-25 10:04:53 by Mikky
use gethostbyaddr() with your IP s address... ie. for localhost... otherwise you get you computername or your computer domain name since the name is returned by the windows sockets provider thingy...
Posted on 2002-01-29 01:58:00 by NervGaz