Your stack trace compared to the selected pattern
Jump to solutionsExpand frames
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
8 frames hidden
poroszd, 5 months ago
Roughly there are three categories of this problem:
- no network available: Probably your machine's network interface is down. Check if you have internet and your application has permissions to use the network interface
- connection refused: The address you are trying to connect is not listening. Check if you did not misspelled the host or the port. Also verify that the server you are trying to reach is actually running and listening.
- connection timed out: The server took too much time to respond. You either have to increase the timeout limit or speed up the server.