Minecraft Error Code Connection refused
The client reached the host, but no Minecraft server accepted the connection.
The client reached the host, but no Minecraft server accepted the connection.
| Code | Connection refused |
| Product | Minecraft |
| Company / origin | Mojang / Microsoft · Sweden / United States |
| Category | Games & Gaming Platforms |
| Platform / versions | Minecraft Java and Bedrock · Current release |
| Severity | error |
| Official source | Minecraft Help ↗ |
| Last verified | 2026-11-10 |
What does Minecraft error Connection refused mean?
A Java ConnectException with 'Connection refused' means the TCP connection reached the host, but nothing was listening on the requested port. The server may be stopped, the port may be wrong, or a firewall may be rejecting the connection.
Common causes
- The Minecraft server is not running.
- The client uses the wrong port or host.
- A firewall or hosting panel blocks the port.
How to fix it
- Step 1
Confirm the server process is running and the port matches server.properties.
- Step 2
Test the port with a port checker or netcat.
- Step 3
Allow the port through the firewall and hosting panel.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
-1073740791 | Exit Code -1073740791 | Minecraft crashed with a native exception. |
Invalid session | Invalid Session | The Microsoft account session is no longer valid. |
Source & verification
This page was checked against Minecraft Help on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Mojang / Microsoft. Always confirm destructive or security-sensitive steps with the official documentation.