This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes to identify internet connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "to identify internet connection " Watch "to identify internet connection " New topic

to identify internet connection

sachin kataria
Ranch Hand

Joined: Mar 27, 2006
Posts: 45
in my application, i have to identify that system (computer) is connected to internet or not..

i try URL class but that is giving my exception:

i also give proxy settings using command,
java -Dhttp.proxyHost=linuxserver test

but that is giving me exception...

so, how i can identify that internet connection is there or not ....??

pls help me.
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Check out these codes.

SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Consider Paul's rocket mass heater.
subject: to identify internet connection
Similar Threads
Https url connection ArrayIndeoutofBounds Exception java
How can I identify the connection problem?
Unable to connect through an NTLM proxy...
Unable to connect through an NTLM proxy...
Bypassing proxy in java