Few things are more frustrating than launching Minecraft to join friends, only to be greeted by a red "X" and the dreaded Can't Reach Server or Unknown Host message. Whether you are hosting a server locally or connecting to an online game host, this comprehensive 2026 troubleshooting guide will diagnose and fix your connection fast.
Quick answer
- Verify the server IP address syntax and append custom ports with a colon (e.g.
108.171.193.63:25575) with zero whitespace. - Flush your local computer's DNS cache using
ipconfig /flushdnsand verify host resolution withnslookup. - Allow Java SE binary through Windows Defender Firewall for both Private and Public networks, and ensure router forwards both TCP (Java) and UDP (Bedrock).
Understanding Minecraft Multiplayer Connection Errors#
The multiplayer server list ping error is not a single problem—it is a symptom of several distinct networking roadblocks. Identifying the exact error message reveals where the connection is failing:
| Error Message | Root Cause | Quick Remedy |
|---|---|---|
Unknown Host |
DNS failure; domain cannot resolve to numerical IP. | Check spelling, flush local DNS, or use direct numerical IP. |
Connection Refused: connect |
Packets reached host machine, but server daemon is offline. | Verify server status in panel; check for startup crash in logs. |
Connection Timed Out: getsockopt |
Packets blocked in transit; no response received. | Open firewall ports; verify port forwarding rules; disable VPN. |
io.netty.handler.codec.DecoderException |
Client and server protocol packet mismatch. | Ensure game version and modpack versions match server exactly. |
Unable to connect to world (Bedrock) |
UDP packets blocked or NetherNet handshake dropped. | Open UDP port; update Geyser plugin to support NetherNet 26.60+. |
Step 1: Check Server Address Syntax and Custom Ports#
The most common cause of "Can't Reach Server" is simple address formatting errors. When adding a server to your multiplayer list, pay close attention to the following details:
- Default Port (25565): Minecraft Java Edition automatically connects to port
25565if no port is specified. If your server is hosted on the default port, you only need to type the domain or numerical IP (e.g.mc.example.comor192.168.1.50). - Custom Port Separation: Game server providers allocate custom ports (such as
25575,27015, or19132). You must append the port to the end of the IP using a standard colon:with no spaces (e.g.108.171.193.63:25575). - Invisible Whitespace: Copying IP addresses from Discord, email, or browser windows often captures leading or trailing spaces. An accidental space like
" 108.171.193.63:25575"triggers an immediate "Unknown Host" error. Delete the entry and retype it manually.
Step 2: Flush Local DNS Cache and Test Host Resolution#
If your server uses a domain name (like play.freegamehost.xyz) and the server administrator recently changed IP addresses or updated DNS records, your local operating system may have cached an outdated numerical address.
On Windows:#
- Press
Windows Key + R, typecmd, and press Enter to launch the Command Prompt. - Type the following command and hit Enter:
ipconfig /flushdns
- Test domain resolution by running
nslookup <server-domain>to confirm that your computer resolves the domain to the correct server IP.
On macOS / Linux:#
- Open Terminal.
- On macOS, run:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - On Linux (systemd-resolved), run:
sudo resolvectl flush-caches
1.1.1.1) or Google Public DNS (8.8.8.8).
Step 3: Allow Java SE Binary Through Windows Defender Firewall#
Every time Minecraft updates to a new major release (such as 26.2 to 26.3), launcher installations frequently update or switch the embedded Java runtime. If Windows Defender Firewall didn't display a security prompt, or if you accidentally clicked "Cancel", outbound and inbound network traffic for Java will be blocked silently.
- Open the Windows Start Menu, search for Windows Defender Firewall, and open it.
- Click on Allow an app or feature through Windows Defender Firewall on the left sidebar.
- Click the Change settings button at the top right (requires administrator privileges).
- Scroll down and locate all entries labeled Java(TM) Platform SE binary and OpenJDK Platform binary.
- Ensure that both the Private and Public checkboxes are checked for all Java entries.
- Click OK to apply changes, then restart Minecraft.
Step 4: Check Router Port Forwarding & Carrier-Grade NAT (CGNAT)#
If you are hosting a Minecraft server from your home computer, players outside your home Wi-Fi cannot connect unless your home router forwards incoming traffic to your PC's local private IP address:
- Port Forwarding Protocol: In your router settings, forward port
25565using protocol TCP/UDP to your local IPv4 address (e.g.192.168.1.105). - Dynamic IP vs Static IP: Your public home IP address can change whenever your modem restarts. Use a dynamic DNS service (like DuckDNS or Cloudflare) to prevent broken links.
- Carrier-Grade NAT (CGNAT): Many modern ISPs (especially cellular 5G and fiber providers) place residential customers behind CGNAT. If your router's WAN IP starts with
100.64.x.x, you do not have a public IPv4 address, and port forwarding is impossible without a VPN tunnel or third-party proxy.
Hosting on a dedicated cloud hosting platform like FreeGameHost eliminates port forwarding entirely, providing a permanent public IP and enterprise DDoS protection.
Step 5: GeyserMC Crossplay Port Conflicts (TCP vs UDP)#
If you are running a crossplay server using GeyserMC so both Java and Bedrock players can connect, you must account for fundamental protocol differences:
- Java Edition uses TCP: Port
25565is a TCP protocol stream. - Bedrock Edition uses UDP: Bedrock (mobile, Xbox, Switch, PS5) communicates exclusively over UDP on port
19132(or a custom UDP port). - The NetherNet Protocol: In Bedrock version 26.60 (October 2026), Mojang replaced RakNet with NetherNet. If your Geyser plugin is outdated or if your firewall blocks UDP traffic, Bedrock players will receive "Unable to connect to world" even while Java players are playing without issue.
Step 6: Check Server Console Logs for Crash Loops & Sleep Mode#
If your network configuration is flawless but the server still displays "Can't Reach Server", the issue is on the server host itself:
- Log into your hosting dashboard and inspect the Console.
- Check for Crash Loops: If the server ran out of memory (
OutOfMemoryError) or a corrupt chunk halted the server, Minecraft may have shut down seconds after starting. Look forcrash-reports/in your File Manager. - Host Hibernation / Sleep Mode: Platforms like Aternos and Minehut force servers into deep hibernation when no players are active for 5 to 10 minutes. A sleeping server cannot respond to multiplayer pings until an owner manually clicks "Start" in the dashboard.
Step 7: Testing Routing & Packet Loss with Ping and Traceroute#
If your server is online for other friends but unreachable specifically from your computer, an internet routing hop between your local ISP and the datacenter might be dropping packets. You can trace the exact network route using built-in diagnostic tools:
- Ping Test: Open Command Prompt and type
ping <server-ip>. If you receive "Request timed out" or 100% packet loss, the host network is either blocking ICMP ping requests or your router cannot find a gateway to that datacenter subnet. - Traceroute (tracert): Run
tracert <server-ip>on Windows (ortraceroute <server-ip>on macOS/Linux). This command prints every intermediate router hop along the journey. If the hops suddenly stop responding at a specific IP address midway through the trace, that telecom carrier is experiencing an outage. - Pathping / MTR: Run
pathping <server-ip>to analyze packet loss percentage over a 2-minute sample window. Any hop exhibiting >5% loss will cause frequent Minecraft server disconnects.
Step 8: Antivirus Suites, VPN Kill Switches & IPv6 Conflicts#
Modern endpoint security software and virtual private networks frequently intercept socket connections before they reach your game client:
- VPN Kill Switches: If you use a VPN (like NordVPN, Mullvad, or ExpressVPN), enabling an automatic Kill Switch can block all local network traffic if the VPN service is paused or reconnecting. Temporarily disable your VPN to test if Minecraft connects normally.
- Third-Party Antivirus Web Shields: Security suites (like Norton, Avast, or Bitdefender) feature deep-packet SSL inspection and custom firewalls that override Windows Defender. Add an exclusion rule for the
.minecraftfolder and your launcher directory. - IPv6 vs IPv4 Priority Conflict: Windows often prioritizes IPv6 addresses when resolving dual-stack domain names. If your home internet service has an incomplete IPv6 configuration, Minecraft will attempt to connect to an unreachable IPv6 endpoint and time out instead of falling back to IPv4. Disabling IPv6 in your network adapter properties forces reliable IPv4 routing.
Frequently asked questions#
What is the difference between 'Connection Refused' and 'Connection Timed Out'?
'Connection Refused' means your packets reached the host computer, but no Minecraft server program was listening on that port (either the server crashed or is still starting). 'Connection Timed Out' means your packets never received a response at all, typically caused by a firewall, closed port forward, or dead server node.
Why does Minecraft say 'Unknown Host'?
'Unknown Host' indicates that your computer cannot resolve the domain name (such as play.myserver.com) to an IP address. This is caused by spelling mistakes in the server address, freshly configured domain DNS records that have not propagated, or a corrupted local DNS cache.
Why can I connect on mobile data but not home Wi-Fi?
If you can connect over a phone hotspot but not home broadband, your home router's firewall or ISP security shield is blocking custom game ports, or your local network is experiencing DNS hijacking. Changing your DNS servers to 1.1.1.1 or 8.8.8.8 on your PC usually resolves the issue.
Why can Java players join but Bedrock players get 'Unable to connect to world'?
Java Edition connects over TCP (port 25565), while Bedrock Edition connects over UDP (port 19132 or custom port). If your firewall or router only forwards TCP traffic, Bedrock players cannot connect. Both TCP and UDP protocols must be opened for Geyser crossplay.
Does a wrong port cause 'Can't Reach Server'?
Yes. If your game server uses a custom port (anything other than default 25565), you must append the port to the end of the server IP address with a colon, for example: 142.250.190.46:25570. Omitting the port causes the game client to query default port 25565 and fail.


