File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Sockets and Internet Protocols
How to check TCP connection to external IP address?
Joined: Oct 05, 2010
Jan 06, 2014 03:00:21
I'm trying to fire an HTTP Get request to an external server. But doing so with
java.net.ConnectException: Connection refused: connect
Connecting through web client opens the
6.0 application and removing the query
and context path takes one to the expected Manager web page.
I also tried ping and tracert. The request was not able to go through. Here is the cmd line outcome:
C:\Documents and Settings\xxxxxx>tracert 103.16.xxx.xx Tracing route to 103.16.xxx.xx over a maximum of 30 hops 1 <1 ms <1 ms <1 ms 192.168.xx.x 2 24 ms 36 ms 34 ms 10.70.144.169 3 118 ms 164 ms 148 ms 10.70.140.182 4 * * * Request timed out. 5 * * * Request timed out. 6 * * * Request timed out. 7 * * * Request timed out. 8 * * * Request timed out.
And ping too gives request timed out.
How do I diagnose the network connection? I'm behind company firewall and proxy; is firewall coming into play here? Or is the remote connection setting that needs a tweak?
Mods, please move this topic if this not the right forum.
Joined: Oct 14, 2005
Jan 06, 2014 18:28:52
Ahsan Bagwan wrote:
I'm behind company firewall and proxy; is firewall coming into play here?
No, it's the proxy. You didn't do anything to tell your Java application about the proxy server, right? Here's the tutorial you need to read:
Java Networking and Proxies
Joined: Oct 05, 2010
Jan 07, 2014 03:11:42
Will check the tutorial. Thanks.
I agree. Here's the link:
subject: How to check TCP connection to external IP address?
Can't access Tomcat 7 from network
tomcat not contact another server ip address
Diagnosing possible network issues
Signed applet and connection refused error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015