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 refusedHow to Fix
Confirm the server is online and running
Double-check the server IP address and port
If hosting locally, verify port 25565 is forwarded in your router
Allow Minecraft through your firewall
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
- Verify server status with the admin or status page
- Check the IP and port are entered correctly
- If self-hosted, check port forwarding
- 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
How to Fix Failed to Bind to Port
FAILED TO BIND TO PORT! Perhaps a server is already running on that port?
How to Fix Connection Timed Out
io.netty.channel.ConnectTimeoutException: connection timed out
How to Fix io.netty.channel.AbstractChannel Error
io.netty.channel.AbstractChannel$AnnotatedConnectException