1. How to know connected or not?

How can I know is the user's computer is connected to Internet or
not?

Thanks very mucH!

new topic     » topic index » view message » categorize

2. Re: How to know connected or not?

If the computer's IP address = 127.0.0.1, then user is offline. (If he is
not connected into other network)
You can use WSockGetIP() from eusock.

Martin

----- Original Message -----
From: <aku at inbox.as>
Subject: How to know connected or not?


>
>
> How can I know is the user's computer is connected to Internet or
> not?
>
> Thanks very mucH!
>
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. 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. smile

> You can use WSockGetIP() from eusock.

Did you know a search in the archives for eusock returns nothing?

Kat

new topic     » goto parent     » topic index » view message » categorize

4. Re: How to know connected or not?

On 3 Jun 2001, at 14:08, aku at inbox.as wrote:

> 
> How can I know is the user's computer is connected to Internet or
> not?

Try anything internet related. See if you can dns yourself. See if you can get a
webpage. I would say to check running applications to see if rnaapp is running,
but if
the puter is on a lan, it prolly won't be, even if online.

Kat

new topic     » goto parent     » topic index » view message » categorize

5. Re: How to know connected or not?

Were it so easy. I have two PCs connected thru a TCP/IP LAN, one of them
with an Internet connection, the second also indirectly connectable by means
of Vsocks, a proxy server/client & firewall. Vsocks can be configured for a
dual connection or a single, any of the PCs in the LAN (though the one with
the Internet connection is always connected, whether you spawn an Internet
app or not.

This means that, for example, in the PC with the actual, physical
connection, I maintain an IP address of  192.168.1.1 (subnet mask
255.255.0.0), whether I'm online or not. Since obviously my ISP will assign
me a dynamic address while I'm online, at this moment my IP address is
"192.168.1.1, 200.42.140.20"

I've also used GO Express Search, a downloadable metacrawler that queries in
the background, so every result you get to view doesn't appear to come from
the Internet but from localhost (port 1234).

So, how to test whether online or not? Basically I agree with Kat: try
something, then test the results. However, I would take this as conclusive
only if you get a positive. A negative I would interpret only as meaning I
didn't get a result, not that I wasn't online. Too many times I've had my
ISP hang on me for several minutes, then restarting at their discretion.

Gerardo

----- Original Message -----
From: <gertie at ad-tek.net>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, June 03, 2001 3:54 PM
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. smile
>
> Kat

new topic     » goto parent     » topic index » view message » categorize

6. Re: How to know connected or not?

On 4 Jun 2001, at 1:38, Gerardo wrote:

<snip>

> I've also used GO Express Search, a downloadable metacrawler that queries in
> the background, so every result you get to view doesn't appear to come from
> the Internet but from localhost (port 1234).

What?!? You didn't write one in Eu??
 
> So, how to test whether online or not? Basically I agree with Kat: try
> something, then test the results. However, I would take this as conclusive
> only if you get a positive. A negative I would interpret only as meaning I
> didn't get a result, not that I wasn't online. Too many times I've had my
> ISP hang on me for several minutes, then restarting at their discretion.

Mine hangs occasionally too. I just set up a loop with some sleep() time, and
retry it,
like this, which just now happened....

vestrymen 1:26am
 -- Error downloading file 'timeout in TCP dialog.'
 -- No reply, retrying...
 1:29am  -- zakristija | zagrad | kapelica | odbor cerkvene ob_ine | Pupnijski o
dbor | skupÜ_ina cerkvenih odbornikov | prostor | dvorana za take skupÜ_ine | za
kristija | vestrymen |

Not that those are correct, but that's a different topic.

Kat

new topic     » goto parent     » topic index » view message » categorize

7. Re: How to know connected or not?

------------7A1151425F994E1

> How can I know is the user's computer is connected to Internet or
> not?
>
> Thanks very mucH!

Hi,
Try the attached include file (ras.ew). It contains the function
RASConnectionCount() which gives a count of the current RAS (Remote
Access Service) connections active.

Of course this won't work if you are connected through a LAN or
something, in that case you'll just have to ping a host on the net or
something like that...

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying
------------7A1151425F994E1
Content-Type: application/octet-stream; name="ras.ew"
Content-Transfer-Encoding: base64

new topic     » goto parent     » topic index » view message » categorize

8. Re: How to know connected or not?

Kat,

----- Original Message -----
From: <gertie at ad-tek.net>
To: "EUforum" <EUforum at topica.com>
Subject: Re: How to know connected or not?


> On 4 Jun 2001, at 1:38, Gerardo wrote:
>
> <snip>
>
> > I've also used GO Express Search, a downloadable metacrawler that
queries in
> > the background, so every result you get to view doesn't appear to come
from
> > the Internet but from localhost (port 1234).
>
> What?!? You didn't write one in Eu??
>
> Kat

I said I used it. Used to use it (aagh!). Some time ago. It worked more or
less fine, but it had one huge drawback: you couldn't add search engines.
Commercial reasons, I guess, quite respectable (I like to eat, too), and it
was free. But there wasn't even an offer for a nonfree configurable upgrade.
I _might_ have paid a few bucks for something that really worked my way, not
theirs.

And, no, I didn't write one. I thought about it, and the problem was not Eu,
but my crazy wandering mind. Say I access NorthernLight. Fine and easy. They
don't require syntax, special symbols, nothing. Just send them a few
strings, more or less logically related, and they'll do the rest.

And they do it quite well. So well, indeed, that I'd be tempted to automate
an additional interface for their Custom Folders, then search-within-search,
and so on. That's a problem with me: I don't know where to stop. Though, now
that I think of it, I guess I'm in good company here ...

Gerardo

new topic     » goto parent     » topic index » view message » categorize

9. Re: How to know connected or not?

----- 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. smile

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu