Re: How to know connected or not?
- Posted by martin.stachon at worldonline.cz Jun 09, 2001
- 354 views
----- Original Message ----- From: <gertie at ad-tek.net> Subject: Re: How to know connected or not? > On 3 Jun 2001, at 12:15, martin.stachon at worldonline.cz wrote: > > > > > > If the computer's IP address = 127.0.0.1, then user is offline. (If he is > > not connected into other network) > > But i use 127.0.0.1 even if i am online! It's the localhost address, and should be valid > all the time. It's a cute trick to tell the HOST file that all the internet webpage > advertisers live at 127.0.0.1, so even if the proxy filters are off, you don't see the > advertising banners when web browsing. I have 1,642 advertiser domains pointed to > null. Yes, but if you are offline, winsock returns loopback (127.0.0.1) as this compter's IP > > > You can use WSockGetIP() from eusock. > > Did you know a search in the archives for eusock returns nothing? Search for winsock. > Kat