How to Fix 'Can't Reach Server' Error in Minecraft
There is nothing more frustrating than firing up Minecraft to jump onto a server with your friends, only to see red signal bars and the dreaded red text stating "Can't reach server" or "Unknown Host".
This network connection error can stem from a wide array of sources: an outdated server runtime, an incorrectly entered port number, firewall blocks, or temporary local DNS hitches. In this comprehensive guide, we'll run through the absolute fastest troubleshooting sequence to isolate the cause and fix it.
Tired of unreliable free hosts dropping offline? Build an instant, stable server on FreeGameHost.
Get Your Free 24/7 Server Now →Step 1: Double Check the Address Format and Custom Ports
The most common culprit behind a broken connection icon is a tiny clerical typo. If a server does not use the default Minecraft communication channel, your game client will fail to intercept it natively.
- Check for spaces: Ensure there are zero accidental blank spaces at the start or end of the connection line. Copy-pasting text from Discord or web threads often adds these invisibly.
- Input custom ports correctly: Minecraft Java Edition naturally assumes a target network port of
25565. If your server provider gave you a unique numerical allocation, you must string it to the backend of your alphanumeric IP using a strict colon separator (e.g.,142.250.190.46:27015).
Step 2: Flush Your Local Computer's DNS Cache
If the server operator updated their root domain records (e.g., swapping to a shiny new custom web domain), your computer might still have the old location records mapped in its native configuration cache, trigger an Unknown Host flag.
You can force your operating system to clear its out-of-date records instantly:
- Open your computer's task bar search box and type
cmdto open the Command Prompt. - Type out the following line and hit your enter key:
ipconfig /flushdns - Restart your Minecraft game client entirely and try refreshing the main multiplayer page.
Step 3: Allow Java SE Binary Through Windows Defender Firewall
When updating to new versions of Minecraft or downloading standalone launchers (like Prism, Modrinth, or CurseForge), the system installs a fresh runtime instance of Java. If you didn't click "Allow Access" on the security popup windows when launching the game, Windows will completely drop outbound data traffic.
- Open up your system Control Panel, select System and Security, and hit Windows Defender Firewall.
- Click on the setting on the left sidebar:
Allow an app or feature through Windows Defender Firewall. - Scroll down until you locate Java(TM) Platform SE binary.
- Ensure both the Private and Public check boxes are explicitly checked. Save modifications and restart your terminal.
Step 4: Check if the Server Node Has Gone to Sleep
If you are trying to sync to a profile on highly restrictive external services (such as an introductory free instance on Aternos or Minehut), their automated resource balancers will drop your server container into absolute hibernation if nobody is physically moving in the map space for consecutive minutes.
If the master environment is asleep, it drops its virtual network path entirely meaning your client receives absolute silence back. To resolve this, someone with control permissions must log into that service's administrative dashboard and manually trigger a node restart before anyone can connect.
Frequently Asked Questions
Skip the connection headaches entirely. Experience reliable hosting supported by high-speed global NVMe nodes.
Launch a Lag-Free Server Free →Free tools & hosting: server.properties generator