The moose likes Java in General and the fly likes Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help" Watch "Help" New topic


Roman V

Joined: Dec 16, 2001
Posts: 7
How can I know ,connected user to the
internet or not?
Gerd Rosarius

Joined: Feb 13, 2002
Posts: 24
Ahmm, I think you should specify your question a little more. Maybe you have a better chance to get a qualified answer then.

<a href="" target="_blank" rel="nofollow">Brains and Bytes</a> − eTechnology- and Marketing-Services
Chris Stehno
Ranch Hand

Joined: Feb 26, 2001
Posts: 180
I am assuming that you want to know if your user is connected to the internet or not ...
I would try to get the HTTP headers from a known stable server (, ... if you get the headers, they are online, if not, they are not ...
you may want to try one or two different servers if the result is negative, just in case the server is down.
Hope this helps

- Chris Stehno, SCPJ
I agree. Here's the link:
subject: Help
It's not a secret anymore!