java.net.ConnectException: 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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by Pat Sun, 1 year ago
Connection timed out
via Stack Overflow by user2999888
, 2 years ago
via Google Groups by Ricardo Tangali, 1 year ago
Connection refused: connect
via marc.info by Unknown author, 2 years ago
Connection refused: connect
via Oracle Community by 843793, 1 year ago
Connection refused: connect
via nabble.com by Unknown author, 2 years ago
Connection refused: connect
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:331)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:196)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
at java.net.Socket.connect(Socket.java:478)
at java.net.Socket.connect(Socket.java:428)
at java.net.Socket.(Socket.java:335)
at java.net.Socket.(Socket.java:150)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:144)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:580)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:203)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:189)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:329)
at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:89)
at java.rmi.Naming.lookup(Naming.java:96)
at undefined.RMIClient.main(RMIClient.java:12)

Users with the same issue

461 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
420 times, 53 minutes ago
5 times, 18 hours ago

Write tip

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