You are trying to connect to the server. Minecraft via a local network or the Internet, but the game stubbornly gives errors like Can't connect to server, IO.Netty.channel.AbstractChannel$AnnotatedConnectException Or is it just stuck at the "Connecting..." stage? In 90% of cases, the problem isn't with the game itself, but with the settings. Wi-Fi networks, router, or operating system. Even if you have a stable internet connection for watching videos, multiplayer mode Minecraft places special demands on the network - and the slightest glitch can block the connection.
In this article we will look at all possible reasons, why can't I play Minecraft over the network via Wi-Fi - from trivial errors in the game settings to complex protocol conflicts IPv6 or double NATYou'll learn how to diagnose the problem in 5 minutes, which router settings affect your connection, and why your antivirus might be blocking game traffic. Finally, you'll find an FAQ with answers to the most frequently asked questions and a table of typical errors with solutions.
1. Router Issues: Why Wi-Fi Is Cutting Minecraft Traffic
The router is the first link that can interrupt the connection to the server. Even if other devices on the network are working fine, Minecraft often faces two key problems:
- 🔌 Port blocking: The game uses a port
25565(default) to connect to servers. If port forwarding is not configured on the router (port forwarding), the traffic simply does not reach the recipient. - 🛡️ Built-in firewall: Many routers (especially models from TP-Link, ASUS or Keenetic) have protection against DDoS attacks, which can mistakenly block packets Minecraft as suspicious.
- 🔄 Double NAT: If your router is connected through another router (for example, from a provider), a network address conflict occurs, and the game cannot correctly identify yours.
IP.
How can I check if the router is at fault? Try connecting to the same server via mobile Internet (Disabling Wi-Fi). If the game works, the problem is definitely in the router settings. If not, look for the cause in your PC or settings. Minecraft.
2. Windows Firewall or antivirus software is blocking the connection.
The operating system and antivirus programs often perceive network activity Minecraft as a potential threat. For example, Windows Defender may block outgoing connections to the port 25565, A Kaspersky or Avast - completely block game traffic, considering it "unusual".
To check this:
- Open
Control Panel → Windows Defender Firewall → Allow an app. - Find in the list Java(TM) Platform SE binary (this is the process that starts Minecraft) and make sure that it is allowed private and public networks.
- If Java not in the list - add it manually by specifying the path to the file
javaw.exe(usually found inC:\Program Files\Java\jre1.8.0_XXX\bin).
For antiviruses, the instructions are similar: find the “Exclusions” or “Safe Applications” section and add it there. Minecraft (file Minecraft.exe) And JavaAfter the changes reboot your PC — sometimes the firewall applies rules only after a reboot.
Disable firewall for 5 minutes for test|
Add Minecraft to your antivirus exceptions|
Check Java permissions in your firewall|
Restart your PC after changes-->
3. Incorrect IP settings: static vs. dynamic
Minecraft sensitive to type IP addresses, which is assigned to your device. If you have enabled dynamic IP (default for most providers), the address may change during the game, and the server will lose connection with you. This is especially true for local servers, where players connect via internal IP (For example, 192.168.1.100).
The solution is to appoint static IP for the device running the server or game. This can be done in two ways:
- 🖥️ Through Windows settings:
- Open
Control Panel → Network and Sharing Center → Change adapter settings. - Right-click on your Wi-Fi connection →
Properties → Internet Protocol Version 4 (TCP/IPv4). - Select "Use the following IP address" and enter the details manually (e.g.
192.168.1.100with a mask255.255.255.0).
- Open
DHCP):
- Go to your router's control panel (usually at
192.168.1.1or192.168.0.1). - Find the section
DHCP → Address Reservation(orStatic Lease). - Tie it up
MAC addressyour PC to a specificIP.
4. IPv6 Conflict: Why Minecraft Doesn't Like the New Protocol
Minecraft historically poorly handles protocol IPv6, especially in older versions 1.16If your ISP or router uses IPv6, the game may either not connect to servers at all or run with constant lag. The problem is exacerbated if the server only supports IPv4 (like most public servers).
How to check if it is at fault IPv6:
- Click
Win + R, entercmdand run the command:ping -6 google.comIf the ping works, you have it enabled.
IPv6. - Open
Control Panel → Network and Sharing Center → Change adapter settings. - Click on your Wi-Fi connection →
Propertiesand uncheckInternet Protocol version 6 (TCP/IPv6).
After disconnection IPv6 Restart your PC and try connecting to the server again. If the problem disappears, the conflict was in the protocol. In rare cases, you may also need to disable IPv6 at the router level (in the settings) LAN or WAN).
What to do if disabling IPv6 doesn't help?
If after disconnection IPv6 Minecraft It still doesn't connect, check:
1. Does the server use IPv6 only (such servers are rare, but they do exist).
2. Is there any conflict with DNS - try manually entering Google's DNS (8.8.8.8 And 8.8.4.4) in the network adapter settings.
3. Is your provider blocking it? IPv4-traffic (relevant for some corporate networks).
5. Server Hosting Issues: Local vs. Public
If you play on local server (running on one of the PCs on your network), problems with connecting via Wi-Fi may be related to:
- 🔗 Incorrect IP address: Clients must connect to local IP servers (for example,
192.168.1.100), and not to127.0.0.1(this only works on the PC where the server is running). - 🚫 Closed ports: The port must be open on the PC with the server
25565(or another one if you changed it inserver.properties). - 🐢 Lack of resources: If the server is running on a weak PC, it may freeze when players connect, which leads to timeouts.
For public servers (For example, Hypixel or The Hive) check:
- 🌍 Server status: Go to the server website or use services like
mcsrvstat.us(enter server IP to see its status). - 🔒 Whitelist: Your account may not be added to
whitelist(list of permitted players). - 📡 Geoblocking: Some servers block connections from certain countries (solved via VPN).
| Server type | A typical problem | Solution |
|---|---|---|
| Local (on PC) | Players can't connect | Check IP, open the port 25565, disable the firewall |
| Local (on the router) | The server is not visible on the network | Turn on DMZ for the server IP or configure Port Forwarding |
| Public | Error IO.Netty... |
Check server status, change DNS, turn off IPv6 |
| Public | High latency (ping) |
Connect via VPN or choose a server closer to your region |
6. Problems with the Wi-Fi adapter: drivers, channels, interference
If Minecraft does not connect to the server via Wi-Fi onlyIf everything works via cable, the problem might be with the wireless adapter itself. Here's what to check:
- 🔄 Adapter drivers: Outdated or corrupted drivers can cause packet loss. Update them via
device Manager(section "Network adapters"). - 📶 Congested Wi-Fi channel: If you and your neighbors use the same channel (for example,
6), interference may occur. Change the channel in the router settings to1,11or40(For5 GHz). - 🔋 Energy saving: Windows can automatically turn off your Wi-Fi adapter to save battery power. Open
Device Manager → Network Adapters → Properties of your adapter → Power Managementand uncheck "Allow the computer to turn off this device...".
Also try connecting to a different Wi-Fi network (for example, using your phone's hotspot mode). If the problem goes away, your router or your current network's settings are to blame.
7. Errors in Minecraft settings: version, mods, launcher
Sometimes the problem isn't with the network, but with the game itself. Here are the most common scenarios:
- 🔄 Incompatibility of versions: If you have Minecraft 1.19, and the server is running on 1.18, you won't be able to connect. Check the version in the launcher (tab
Installations). - 🧩 Mod conflict: Mods like OptiFine or Forge may change the game's network code. Try running clean version without mods.
- 🚪 Incorrect launcher: Official launcher Mojang and alternative (like TLauncher or MultiMC) may have different network settings. For example, TLauncher sometimes blocks connection to premium servers.
To eliminate problems with the launcher:
- Delete Minecraft and install it again through
official minecraft.net. - Try running the game with this parameter
-Djava.net.preferIPv4Stack=true(add it to your launcher profile settings). - If you use mods, delete the folder.
.minecraft/modsand check the connection without them.
FAQ: Frequently asked questions about connecting to Minecraft via Wi-Fi
🔍 Why does Minecraft say "Can't connect to server" even though the internet is working?
This error means the game can't connect to the server. Causes:
- The server is down or overloaded (check its status on the website).
- The port is closed
25565on a router or PC with a server. - Firewall or antivirus is blocking Minecraft.
- Mismatch between game and server versions.
First check if you can connect to to another server (For example, play.hypixel.net). If so, the problem is with the target server. If not, look for the cause in your network.
🌐 How do I open port 25565 on my router for Minecraft?
Instructions for most routers:
- Go to your router's control panel (usually
192.168.1.1or192.168.0.1). - Find the section
Port Forwarding(or "Port Forwarding"). - Add a rule:
- Name:
Minecraft - Port:
25565(or another one if you changed it). - Protocol:
TCP/UDP(or both separately). - IP address:
IPyour PC (where the server is running).
- Name:
If you have double NAT (router from the provider + your router), you will have to open a port on both devices.
📶 Minecraft lags on Wi-Fi but works fine over a cable. What should I do?
The problem is unstable Wi-Fi connection. Try:
- Switch to frequency
5 GHz(if your router supports it) - it is less loaded. - Change the Wi-Fi channel in the router settings (for example, from
6on11). - Update Wi-Fi adapter drivers.
- Connect your PC to the router via Powerline adapter (Internet transmission via electrical wiring) is more stable than Wi-Fi.
If the lags remain, the problem may be in router overloadTry limiting the number of connected devices or rebooting your router.
🔒 My antivirus is blocking Minecraft. How do I add it to the exceptions list?
Instructions for popular antiviruses:
- Kaspersky:
Settings → Advanced → Threats and Exclusions → Manage Exclusions. Add filesMinecraft.exeAndjavaw.exe. - Avast:
Menu → Settings → General → ExceptionsSpecify the path to the folder.minecraft. - Windows Defender:
Windows Security → Virus & threat protection → Manage settings → Exclusions.
After adding exceptions Restart your antivirus and the game.
🎮 Is it possible to play Minecraft on Wi-Fi without opening ports?
Yes, but with some reservations:
- For public servers (like Hypixel) There is no need to open ports - they are already configured on the server side.
- For local server you can use:
- Services like Hamachi or ZeroTier (create a virtual network).
- Function
UPnPon the router (automatically opens ports, but less reliably).
However, for stable operation recommended tune Port Forwarding manually.