How to Fix Your Minecraft Wi-Fi Connection to Play with Friends

Many gamers face a situation when the long-awaited session in Minecraft Playing with friends is disrupted by network issues. Instead of building castles or exploring mines, users are forced to search for solutions to the "Failed to connect to server" or "No internet connection" error. More often than not, the root of the problem lies not in the app itself, but in local network or router settings that block the exchange of data packets between devices.

To successfully create or join LAN world (local area network) it is critical that all devices are on the same subnet and have correct IP addresses. A key factor is often the IPv4 protocol, which must be active on all computers participating in the game. If your router is configured to prioritize IPv6 or uses complex security features, this may prevent the server from being discovered by other players on the network.

In this guide, we'll walk you through step-by-step troubleshooting for network issues. We'll cover everything from basic Windows settings to more complex port and firewall manipulations, so you can get back into the game without unnecessary delays.

Network status and game version diagnostics

The first step before configuring your router in depth is to check the basic settings. Make sure all devices are connected. to the same one Wi-Fi router. It often happens that one device is connected to a guest network and the other to the main network, making them "invisible" to each other. Also, check that all players are running the same game version: even a minimal discrepancy in update numbers (for example, 1.20.1 and 1.20.2) will make connection impossible.

Pay attention to the network type in your operating system. If Windows classifies your connection as "Public Network," it automatically hides your computer from other devices for security purposes. You must switch the network profile to "Private" to allow discovery.

📊 What type of error do you encounter most often?
The server was not found in the list.
IP connection error
High ping and lags
The game crashes when I log in.

To quickly check the connection between devices, you can use the built-in command line utility. Open the terminal (by pressing Win + R and entering cmd) and try pinging the host address. If there's no response, the problem lies with the physical layer or the Wi-Fi adapter drivers.

Setting up a firewall and antivirus

The most common reason for connection blocking in Minecraft Java Edition This could be Windows Defender or a third-party antivirus. They may perceive the game's attempts to create a server as a potential threat and block incoming connections. You need to add an exception for the game's executable file.

To do this in the standard Windows firewall, go to the Control Panel and find the "Windows Defender Firewall" section. Select "Allow an app" and find it in the list. Java(TM) Platform SE binary or javaw.exe. Ub pastikan, that there are checkmarks next to both types of networks (private and public).

⚠️ Note: If you're using a third-party antivirus (Kaspersky, ESET, Avast), Windows Firewall settings may be ignored. Open your antivirus's interface and find the "Firewall" or "Firewall" section to add Minecraft to your trusted applications.

☑️ Network security check

Completed: 0 / 5

After making changes, be sure to completely restart the game. Sometimes a computer restart is required for the new packet filtering rules to take effect. If the issue persists, try temporarily disabling your antivirus to test the hypothesis, but be sure to re-enable protection immediately afterward.

Checking IP addresses and gateway

For a local network to function correctly, all devices must be on the same segment. This means that the first three digits of the IP address of the host (the world creator) and the clients (connecting players) must match. For example, if one device has an address 192.168.1.5, then the other one must have 192.168.1.X, where X is any number from 2 to 254.

You can find out your current IP address using the command line. Enter the command ipconfig and find the line "IPv4 Address." Also write down the "Default Gateway" - this is the address of your router. If the addresses differ in the first three octets (for example, 192.168.0.X And 192.168.1.X), this means that the devices are on different subnets and cannot see each other.

Parameter Host (Creator) Value The Meaning of Client (Friend) Status
IPv4 Address 192.168.1.15 192.168.1.22 Norm (matches)
Subnet mask 255.255.255.0 255.255.255.0 Norm
Gateway 192.168.1.1 192.168.1.1 Norm
IPv4 Address (Error) 192.168.0.15 192.168.1.22 Error (different networks)

If you find a discrepancy, try reconnecting to the Wi-Fi network on the affected device or rebooting the router to reassign addresses via DHCP. In rare cases, manually assigning a static IP address in the network adapter settings may help.

Port forwarding and opening access

If you plan to play not only over a local network but also over the internet, or if standard LAN search doesn't work, you may need to forward ports. Minecraft uses the default port 25565. You need to log into your router settings (usually via the address 192.168.0.1 or 192.168.1.1 in the browser).

Find the section in the router interface Port Forwarding, "Virtual Servers," or "NAT." Create a new rule specifying the internal IP address of the computer running the server and port 25565 (TCP/UDP protocol). This will allow external requests to pass through the router directly to the game.

What to do if your provider uses CG-NAT?

If your external IP address doesn't match the one shown by 2ip.ru, you're behind a double NAT. In this case, port forwarding on your router won't help. You'll need to either request a dedicated IP from your ISP or use virtual networking software like Hamachi or Radmin VPN.

After configuring the ports, check their availability using online port checking services. If the port is closed, check whether the router itself is blocking it through global security settings.

Changing DNS and resetting network settings

Sometimes the problem lies in the incorrect operation of your ISP's DNS servers, which cannot correctly resolve Minecraft server names. Try manually entering reliable DNS addresses, such as those from Google (8.8.8.8) or Cloudflare (1.1.1.1). This is done in the IPv4 protocol properties in the network connection settings.

Additionally, it's worth performing a full reset of Windows network settings to clear the cache and old configurations. Open a command prompt as administrator and enter the command netsh winsock reset, and then netsh int ip resetAfter executing the commands, be sure to restart your computer.

⚠️ Note: Resetting network settings may delete saved Wi-Fi network passwords and VPN connection settings. Be prepared to re-enter your wireless router password.

These steps help resolve software conflicts in the TCP/IP stack that may arise after Windows updates or installing new network hardware. If this doesn't help, the issue may lie with the Wi-Fi adapter drivers.

Using alternative connection solutions

When standard methods fail, specialized utilities for emulating a local network over the Internet come to the rescue. Programs like Radmin VPN, Hamachi or ZeroTier Create a virtual adapter that connects your friends' computers into a single network, regardless of their physical location or router settings.

To use this method, all participants need to install the same program, create a room (network), and connect to it. After that, in Minecraft, you need to use the IP address that the program provides (usually it starts with 25.x.x.x or 27.x.x.x), for direct connection via the menu "Network game" -> "By address".

This solution is ideal for playing with friends in different cities, or if your ISP blocks the required ports. However, it's important to note that such programs add a slight delay (ping) due to traffic encryption.

Frequently Asked Questions (FAQ)

Why can my friends see my world but can't connect to it?

Most likely, the firewall is allowing detection (UDP packets) but blocking the connection itself (TCP). Check your incoming connection rules for Java and ensure that your antivirus isn't blocking the specific port the game has selected for the session.

Is it possible to play via Wi-Fi if one player has mobile internet?

No, for a standard LAN network to work, all devices must be connected to the same router. If your friend uses mobile internet (4G/5G), you'll need to use third-party software like Hamachi or set up a dedicated server with a public IP address.

How do I know what version of Minecraft I have installed?

The version is listed in the lower left corner of the game's main menu. It can also be found in the launcher (official or a third-party one like TLauncher) next to the launch button. To play, the versions must match exactly, including the build number.

Why did the internet disappear in Minecraft after updating Windows?

System updates often reset firewall settings or change the network type from "Private" to "Public." Recheck your firewall permissions and your Wi-Fi network profile.