Skip to main content
warningConnection ErrorsAffects: All versions

How to Fix java.net.ConnectException

Fix java.net.ConnectException by verifying server status, checking IP/port, and configuring port forwarding.

Quick Fix

Check that the server is running and the IP:port is correct. Verify firewall and port forwarding.

Error Message

java.net.ConnectException: Connection refused: no further information

How to Fix

1

Confirm the server is running

2

Check the IP address and port number

3

Forward port 25565 on the router for home-hosted servers

4

Allow Java/Minecraft through the firewall

Common Causes

  • Server not running on the specified port
  • Firewall blocking the port
  • Wrong IP address
  • Port not forwarded

Diagnostic Steps

  1. Verify server is online
  2. Check IP and port
  3. Test port forwarding with a port checker tool
  4. Check firewall rules

FAQ

How do I test if my port is forwarded?

Use canyouseeme.org or similar port checker. Enter port 25565 while the server is running.

Related Errors

Need More Help?