Minecraft · Connection Refused

Minecraft Error Code Connection refused

The client reached the host, but no Minecraft server accepted the connection.

errorLast verified 2026-11-10Minecraft Help
Quick answer

The client reached the host, but no Minecraft server accepted the connection.

CodeConnection refused
ProductMinecraft
Company / originMojang / Microsoft · Sweden / United States
CategoryGames & Gaming Platforms
Platform / versionsMinecraft Java and Bedrock · Current release
Severityerror
Official sourceMinecraft Help ↗
Last verified2026-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

  1. Step 1

    Confirm the server process is running and the port matches server.properties.

  2. Step 2

    Test the port with a port checker or netcat.

  3. Step 3

    Allow the port through the firewall and hosting panel.

When to escalate

Before you escalate: If the same Minecraft error persists after restarting the launcher, signing out and back in, and testing another network, collect the full error text, the launcher log, the Java version, and the operating system before contacting Minecraft Support.

Related codes

CodeNameWhat it means
-1073740791Exit Code -1073740791Minecraft crashed with a native exception.
Invalid sessionInvalid SessionThe 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.