java.rmi.ConnectException: Connection refused to host: 192.168.0.83; nested exception is: java.net.ConnectException: Connection timed out: connect

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

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

,
Expert tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.

Solutions on the web

via Stack Overflow by shaldnikita
, 10 months ago
Connection refused to host: 192.168.0.83; nested exception is: java.net.ConnectException: Connection timed out: connect
via Oracle Community by 843793, 1 year ago
Connection refused to host: pebbleit.hope.edu; nested exception is: java.net.ConnectException: Connection timed out: connect
via Stack Overflow by Patze
, 9 months ago
Connection refused to host: myHost; nested exception is: java.net.ConnectException: Connection refused
via Stack Overflow by StrayPointer
, 10 months ago
Connection refused to host: 192.168.56.1; nested exception is: java.net.ConnectException: Connection timed out: connect
via Oracle Community by 843793, 1 year ago
Connection refused to host: 10.0.1.2; nested exception is: java.net.ConnectException: Connection refused: connect
via Coderanch by Stevens Miller, 5 months ago
Connection refused to host : 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
at com.sun.proxy.$Proxy0.canConnect(Unknown Source)
at server.Main.main(Main.java:16)

Users with the same issue

3 times, 4 hours ago
24 times, 9 hours ago
253 times, 11 hours ago
91 times, 3 days ago
2 times, 6 days ago

Write tip

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