org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.50.5:1500 [/192.168.50.5] failed: Connection timed out

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.

,
Expert tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Solutions on the web

via Stack Overflow by Sonn
, 1 year ago
Connect to 192.168.50.5:1500 [/192.168.50.5] failed: Connection timed out
via Stack Overflow by iamj
, 8 months ago
Connect to 10.9.11.222:8500 [/ 10.9.11.222] failed: connect timed out
via GitHub by gm100861
, 1 year ago
Connect to www.huxiu.com:80 [www.huxiu.com/101.201.170.135] failed: connect timed out
via Atlassian JIRA by Antrego, 1 year ago
Connect to jira.domain.com:443 [jira.domain.com/188.165.234.170] failed: Connection timed out
via Stack Overflow by AtomEye
, 1 year ago
Connect to xxx.xxx.xxx.xxx:8080 [/xxx.xxx.xxx.xxx] failed: Connection timed out
via GitHub by ikari7789
, 1 year ago
Connect to internal.bitbucket-server.com:443 [internal.bitbucket-server.com/X.X.X.X] failed: Connection timed out
org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.50.5:1500 [/192.168.50.5] failed: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.eclipse.om2m.sample.sendalarmmessage.MessageSender.post(MessageSender.java:27)
at org.eclipse.om2m.sample.sendalarmmessage.ListeningMonitor$MyHandler.handle(ListeningMonitor.java:205)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(ServerImpl.java:158)
at sun.net.httpserver.ServerImpl$Dispatcher.handle(ServerImpl.java:431)
at sun.net.httpserver.ServerImpl$Dispatcher.run(ServerImpl.java:396)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 months ago
13 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.