Quick Summary
The error 'Couldn't resolve hostname' in Minecraft means your computer is unable to find the server you're trying to connect to because it can't translate the server address (hostname) into an IP address. This usually indicates a DNS issue or a typo in the server address.
Common Causes
- Incorrect Server Address: The entered server address may contain a typo, or the address may have changed since you last connected successfully.
- DNS Server Issues: Your computer may be using a DNS server that is temporarily unavailable or unable to resolve the hostname of the Minecraft server.
- Internet Connection Problems: A lack of stable internet connection will prevent your computer from reaching the DNS server to resolve the hostname.
- Firewall Blocking Connection: Your firewall or antivirus software may be blocking Minecraft from accessing the internet or resolving hostnames.
- Outdated DNS Cache: Your computer may have a cached DNS entry that is outdated or incorrect.
Step-by-Step Fixes
Method 1: Verify Server Address
Step 1: Double-check the server address you entered. Ensure there are no typos or extra spaces.
Step 2: Obtain the correct server address from the server administrator or a reliable source.
Step 3: If you copied the address, ensure you haven't accidentally included any leading or trailing spaces.
Method 2: Restart Your Router and Computer
Step 1: Power down your router by unplugging it from the power outlet.
Step 2: Wait 30 seconds.
Step 3: Plug your router back in and wait for it to fully power on.
Step 4: Restart your computer.
Method 3: Flush DNS Cache
Step 1: Open the Command Prompt (Windows) or Terminal (macOS/Linux).
Step 2: Type ipconfig /flushdns (Windows) or sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder (macOS) or sudo systemd-resolve --flush-caches (Linux, if using systemd-resolved) and press Enter.
Step 3: Restart your computer.
Method 4: Change DNS Server
Step 1: Go to your network adapter settings (e.g., through Control Panel in Windows or System Preferences in macOS).
Step 2: Find your active network connection (Wi-Fi or Ethernet).
Step 3: Change the DNS server addresses to public DNS servers like Google's (8.8.8.8 and 8.8.4.4) or Cloudflare's (1.1.1.1 and 1.0.0.1).
Step 4: Restart your computer.
Method 5: Check Firewall Settings
Step 1: Check your firewall and antivirus software settings to make sure that Minecraft is allowed to access the internet.
Step 2: Add Minecraft as an exception if it is being blocked.
Method 6: Check Internet Connection
Step 1: Ensure you have a stable internet connection.
Step 2: Try accessing other websites or online services to verify your connection is working.
Step 3: If using Wi-Fi, try switching to a wired connection to rule out Wi-Fi connectivity issues.