Can't connect to a Minecraft server?
Common errors and fixes
When Minecraft won't let you into a server, start with the error message on screen. A wrong address, a version mismatch, missing permissions and network trouble each show a different message.
Find the cause from the error
These are the messages the Java Edition 26.3 client shows in English. If your game runs in another language, you'll see a translation of the same text. When a connection fails, the screen often adds a line with a Java error, such as Connection refused, which stays in English.
| Error message | Usual cause | What to do |
|---|---|---|
| Can't connect to server | The server list can't reach the server. It is offline, the address or port is wrong, or the network is blocking it | Press Join Server to see the full error message |
Failed to connect to the server Connection refused: getsockopt | The server isn't running, or the port is wrong | Make sure the server has finished starting and the port after the address matches the server's port |
Failed to connect to the server connection timed out | Your connection can't reach the server. A firewall, port forwarding or a wrong IP is the usual cause | Self-hosted: check the firewall and router port forwarding. Hosted: check the address first, then the service status |
| Unknown host / Can't resolve hostname | A typo in the address, or a custom domain that hasn't taken effect yet | Copy the address from the console. If you just set up a domain, wait for DNS to update and try again |
| Incompatible client! Please use … / Outdated client / Outdated server | Your game version doesn't match the server | Pick the server's version in the launcher, or install ViaVersion on the server so newer clients can join |
| Failed to verify username! / Invalid session | Account authentication failed | Close the game and launcher and sign in to your Microsoft account again. Accounts without a paid copy of the game can't join servers that verify accounts |
| You are not white-listed on this server! | The whitelist is on and you're not on it. Servers created on 26.3 or later have the whitelist on by default | Ask an admin to run whitelist add with your name in the console, or turn the whitelist off |
| You are banned from this server | Your account is banned on this server | Ask an admin to check the ban list |
| Multiplayer is disabled | The Microsoft account's privacy settings block multiplayer, which is common on child accounts | Allow multiplayer in the Xbox privacy settings. Child accounts need a parent to allow it |
| Mod mismatch errors | The player's mods or versions differ from the server's | Join with the same version of the same modpack |
| Connection Lost / Timed out (mid-game) | The server froze or crashed, or the network is unstable | Check the console log and resource usage. If the server is lagging, work through the lag guide |
If you get disconnected mid-game and everyone was lagging at the same time, the server usually can't keep up. Its TPS will tell you.
Self-hosted servers
When friends outside your home can't reach a server running on your own PC, the network setup is the usual culprit. The connection reaches your router first and is then forwarded to your PC, so check every step along the way.
With your own public IP
- Friend's computer Your friends have your public IP, not a local IP starting with 192.168.
- Internet 203.0.113.5 Your router forwards TCP 25565 to this PC's local IP address.
- Forward TCP 25565 192.168.1.20:25565 The console shows Done, and you can join yourself through localhost. Windows Firewall allows Java through.
CGNAT (the ISP shares one public IP among many customers)
- Friend's computer
- Internet ISP's shared IP The WAN IP on your router's admin page doesn't match your public IP.
- Can't reach Your router Port forwarding has no effect
Haven't set this up before? Start from the firewall step in hosting a server on your own PC.
Hosted servers
When players can't get into a hosted server, the server usually hasn't started properly, the address or version is wrong, or the whitelist is blocking them.
1. Check that the console finished starting
When the console log ends with Done and For help, type "help", the server is up. If the log stops at an error instead, the server never started, and that error is the thing to fix first.
For an error you can't make sense of, the docs page on reading errors with AI (Chinese) walks through it. You can also open a support ticket with a screenshot.
2. Copy the address from the panel
The server address sits at the top of the console with a copy button next to it, and it shows on the mobile view too. Give friends the full address including the port, for example mc.example.com:25565.
3. Check the whitelist and ban list
If a player sees not white-listed, run whitelist add PlayerName in the console. It takes effect right away. To switch the whitelist off entirely, run whitelist off, or set white-list to false in server.properties and restart. Unban a player with pardon PlayerName.
The new vPanel also has a Player management page, where the whitelist, OPs, banned players and banned IPs are handled with buttons. Changes made while the server is running apply immediately.
4. Check the version
Version installer shows which Minecraft version the server runs. Players need the same one. If you're going to change the server's version, make a backup first.
Bedrock Edition
Bedrock Edition gives fewer details and often just says Unable to connect to world, so you have to rule things out one at a time.
- Enter the address and the port in separate fields. Don't add
:portto the address. - Use your server's port, which may not be the default 19132. On a hosted server, use the entry marked as primary on the Network tab of the control panel.
- Minecraft on phones updates itself, so the server has to be on the same version.
- The Xbox account's privacy settings must allow multiplayer. On a child account, a parent has to allow it in the Xbox family settings.
- The Switch, PlayStation and Xbox versions can't add custom servers. Join from a phone, a tablet or the Windows version.
For a Bedrock server you host yourself, open both TCP and UDP in the firewall and router. The older advice of opening UDP only may leave players unable to connect.
References
- Tutorial: Setting up a Java Edition server Minecraft Wiki
- server.properties Minecraft Wiki
- /whitelist Minecraft Wiki