How to Fix 'Connection Refused' on Your Minecraft Server

Diagnose and fix Connection Refused errors on your Minecraft Java server — server offline, wrong port, crashed at startup, or full.

"Connection Refused" means something at that address is responding — but actively rejecting your connection. This is different from "Connection Timed Out", where nothing replies at all. Refused = server is reachable but the Minecraft port isn't accepting; Timed Out = the IP/port isn't even reachable.

That distinction matters: refused errors are almost always server-side, not network-side.

Quick Diagnosis

What you seeMost likely cause
"Connection refused: connect"Server is offline or still booting
Refused after working yesterdayServer crashed — check Console
Refused on a new installWrong port or server hasn't finished startup
Refused only for some playersServer full (max-players reached)
Refused immediately, no delayNothing listening on that port

Fix It

Check the Dashboard

Open the XGamingServer Panel and look at the Dashboard. Is the server showing as Online or Offline?

  • Offline → click Start and wait for Done in the Console
  • Starting → wait. Modpacks can take 2–5 minutes to fully boot
  • Crashed → check Console for the error and see Server Won't Start

Wait for "Done" in Console

Open Console in the sidebar. The server is only accepting connections after you see:

[Server thread/INFO]: Done (12.345s)! For help, type "help"

If you connect before that, you'll get refused. Modded servers (Forge, Fabric, large modpacks) often take 2–5 minutes to reach Done.

Verify the port

Click Network in the sidebar to see your server's assigned port. It is not always 25565. Use the exact port shown there.

In your Minecraft client:

your-ip:your-port

If the port doesn't match what's in Network, that's your problem.

Check if the server is full

Refused-after-working can mean max-players reached. Check Console:

list

If player count = max-players, increase it in the Startup tab (or max-players in server.properties) and restart. See Player Limit.

Check Console for crash messages

If the server crashed during startup, the Dashboard may show "Online" briefly, then go offline. Read the first error in the Console (not the last). Common ones:

ErrorFix
You need to agree to the EULAAccept the EULA
UnsupportedClassVersionErrorWrong Java version — see Java Version
OutOfMemoryErrorIncrease RAM in Startup — see How Much RAM
Exception in server tick loopPlugin/mod error — see Server Tick Loop
Address already in useRare on hosted — contact support

Refused vs Timed Out

SymptomRefusedTimed Out
Connection delayInstant rejection30+ second wait, then fail
What it tells youPort is closed at the hostCan't reach the host at all
Likely causeServer offline / wrong portWrong IP / network blocked / DNS broken
Where to look firstPanel Dashboard + ConsoleLocal network, then panel

If you have Timed Out instead, see Fix: Connection Timed Out.

Common Mistakes

MistakeFix
Connecting before "Done" appearsWait for the Done message in Console
Using port 25565 when your port is differentUse the port shown in Network
Using localhost or 127.0.0.1That only works on the host. Use your panel IP
Forgetting :port in clientAdd :portnumber after the IP
Server actually crashed silentlyRead Console — first error wins

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page