Your stack trace compared to the selected pattern
Jump to solutionsExpand frames
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
18 frames hidden
poroszd, 4 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.
External results for this pattern (10)
- Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect This problem occurred in the following place: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25; nested exception is: java.net.ConnectException: Connection refused: connectShow stack trace