Skip to main content
criticalConnection ErrorsAffects: All versions

How to Fix Connection Refused

Fix Connection Refused by verifying the server is running, checking the IP/port, and configuring firewall and port forwarding.

Quick Fix

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

Error Message

io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused

How to Fix

1

Confirm the server is online and running

2

Double-check the server IP address and port

3

If hosting locally, verify port 25565 is forwarded in your router

4

Allow Minecraft through your firewall

5

Try connecting to localhost if on the same machine

Common Causes

  • Server is not running
  • Incorrect server IP or port
  • Firewall blocking the connection
  • Server port not forwarded (for home-hosted servers)

Diagnostic Steps

  1. Verify server status with the admin or status page
  2. Check the IP and port are entered correctly
  3. If self-hosted, check port forwarding
  4. Check firewall settings

FAQ

How do I port forward for Minecraft?

Log into your router at 192.168.1.1, find Port Forwarding, add a rule for TCP port 25565 pointing to your server's local IP.

Related Errors

Need More Help?