cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR: java.net.SocketException: Network is unreachable: connect

jsontester
Occasional Contributor

ERROR: java.net.SocketException: Network is unreachable: connect

Because I run lot of programs I set my laptop to standby and don't turn my laptop off when I go to office from home for example 

If I connect to another network I must close and re-open ReadyAPI otherwise I can't sent request and get: ERROR: java.net.SocketException: Network is unreachable: connect

 

Is there a solution/setting to fix this or must I always  re-open ReadyAPI when I connect to another network?

 

 

4 REPLIES 4
nmrao
Community Hero

Re: ERROR: java.net.SocketException: Network is unreachable: connect

Would you please check if closing of the project and and reopening would help instead of restarting the tool?


Regards,
Rao.
jsontester
Occasional Contributor

Re: ERROR: java.net.SocketException: Network is unreachable: connect

close project and open project doesn't work. I have also tried to reload but no difference.

richie
Community Hero

Re: ERROR: java.net.SocketException: Network is unreachable: connect

Hey @jsontester,

Have you tried altering from https to http or http to https?

Quite often i find when i get this socket exception its cos im using the wrong protocol

Ta

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
jsontester
Occasional Contributor

Re: ERROR: java.net.SocketException: Network is unreachable: connect

The endpoint of the API I have used is http.

If I change the HTTP version in the settings from 1.0 to 1.1 or 1.1 to 1.0 there is no difference. I must close and restart ReadyAPI

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors