The Unknown Host error in Minecraft occurs when your game client cannot locate the destination server based on the address you provided. This connection failure is typically caused by a simple spelling mistake in the IP address, an expired domain, or a local DNS routing problem. Fortunately, you can resolve it in just a few minutes on both Java Edition and Bedrock Edition.
play.server.net) continues to show Unknown Host, ask the server administrator for the direct numerical IP address (such as 192.168.1.1:25565) to bypass domain lookup entirely.Check the Server Address for Typos and Extra Spaces
The most common cause of the Unknown Host error is a misplaced letter, number, or hidden whitespace in the server field. Return to your Multiplayer list (Java Edition) or Servers tab (Bedrock Edition), edit the server entry, and verify every character against the official IP provided by the server host.
Ensure you did not accidentally copy a trailing space at the beginning or end of the address. In Java Edition, custom ports must follow a colon directly (for example, mc.example.com:25565). In Bedrock Edition, the domain goes into the Server Address box and numeric ports go into the separate Port box.
Flush Your Computer's DNS Cache
Your operating system stores temporary domain name lookups in a local cache. If a server migrated to a new IP address or your local record became corrupted, Minecraft will fail to locate the host. Flushing this cache forces your computer to fetch fresh network records.
On Windows, press Win + R, type cmd, and press Enter to open the Command Prompt. Type ipconfig /flushdns and press Enter. Once you see the confirmation message stating the DNS Resolver Cache was successfully flushed, restart Minecraft and try joining again.
Switch to a Reliable Public DNS
Default DNS servers provided by local internet service providers (ISPs) can occasionally fail to resolve gaming domains or update records slowly. Switching your network adapter to a fast public DNS service like Google DNS or Cloudflare DNS often clears the Unknown Host issue immediately.
Open your computer's network connection settings and navigate to your adapter properties. Under IPv4 properties, select custom DNS servers and enter 1.1.1.1 (Preferred) and 1.0.0.1 (Alternate) for Cloudflare, or 8.8.8.8 and 8.8.4.4 for Google. Save your settings and restart your network adapter.
Disable Active VPNs and Third-Party Proxies
Virtual Private Networks (VPNs) and web proxy software reroute your traffic through remote tunnels that can fail to resolve Minecraft server hostnames properly. If you are running an active VPN on your PC or console, disconnect from it before launching the game.
Similarly, strict third-party firewall utilities can block outbound DNS queries made by Java or the Bedrock executable. Temporarily disable these tools or create outbound exceptions for Minecraft to see if connections succeed without encountering Connection Timed Out or resolution errors.
Confirm Server Availability and Edition Compatibility
If the error persists after checking your local network, the server host itself might be offline, undergoing maintenance, or using an expired domain name. Check the server's official Discord server or community status page to verify if others can connect.
Also confirm that you are connecting with the correct edition. Standard Java Edition servers cannot accept Bedrock Edition players unless the host has installed cross-play compatibility plugins like GeyserMC. If you enter a Bedrock-only address into a Java client, the hostname might not resolve.
Frequently Asked Questions
Why do I get Unknown Host when my internet connection is working fine?
The Unknown Host error specifically means your game cannot translate the typed server name into a numerical IP address via DNS. Your overall web browsing may work fine while a specific gaming domain fails to resolve due to stale DNS cache or a typo in the address.
Can I fix Unknown Host on console versions of Bedrock Edition?
Yes. On consoles such as Xbox, PlayStation, or Nintendo Switch, verify that the Server Address and Port boxes are filled accurately in the Featured or External Servers tab. If issues persist, go into your console's network settings and manually set the DNS servers to 1.1.1.1 and 1.0.0.1.




















