java.net.ConnectException: Connection timed out: connect , but working from browser.
posted 11 months ago
I got one issue that is not getting resolved for long time, And found this place for best option.
Any help in this will give me a a great insight about networks and servers. in spite of referring many posts in several internet resources , this be came hard to figure out root cause.
Problem : Getting java.net.ConnectException: Connection timed out: connect
My Program : Given below.
Exception Trace : Given below
My Observations : 1)From browser it is working fine. able to get response.
2) Checked with TCP Monitor from eclipse. it is giving java.net.SocketException: Unexpected end of file from server
3) But for other URLs(different ip and port) i am able to get response successfully. in this case TCP Monitor is showing no request but able to show response.
4) And it is observed that In the google chrome request, whenever i hit for first time a special proxy-authentication is sent. And of Type "Negotiate"
5) Error: Could not connect to server. is the message eclipse TCP Monitor showing.
I worked for several days on figuring out. It will be a great help from you.