How to play Minecraft online on a PC using a Wi-Fi router

Minecraft's multiplayer mode transforms a standard survival game into an exciting adventure filled with cooperative building and mob-battling. However, many users encounter difficulties connecting multiple computers into a single gaming zone without using paid servers. A local network set up via a Wi-Fi router is the most accessible and fastest way to start playing with friends or family members in the same apartment.

To successfully launch a game online, you need to understand the basic principles of operation local network (LAN) and properly configure your operating system's security settings. Modern versions of the game and Windows operating system require careful attention to firewall settings and network profile type. In this article, we'll cover all connection steps, from hardware testing to troubleshooting complex connection errors.

Equipment testing and network preparation

The first step is to ensure all computers are physically connected to the same router. Wireless signal quality directly impacts gaming stability, so it's recommended to place devices in a strong reception area or use wired connection for the host (creator of the world).

All PCs must be on the same subnet, which usually happens automatically when connecting to a home router. If you're using a guest network or corporate Wi-Fi with client isolation, direct connections between devices will be impossible without changing the router settings.

It is important to make sure that all computers have the same version of the game installed. Minecraft Java Edition or Minecraft Bedrock Edition, as cross-platform interaction between these versions is limited or requires special bridges.

Check if the protocol is enabled TCP/IP in the network adapter properties. In most cases, it's active by default, but in rare cases of manual builds or system optimizations, its components may be disabled.

Setting up a network profile in Windows

For security reasons, the Windows operating system often assigns new connections the "Public Network" status. In this mode, the computer becomes invisible to other devices, blocking the ability to play over a local network.

To fix this, you need to change the network profile to "Private Network." This will allow the device to be discovered and open the necessary ports for local data exchange.

To complete the setup, go to the menu Settings → Network & Internet → StatusIn the connection properties section, select the option to switch profiles. After changing the status, the network will become discoverable by other players.

⚠️ Attention: Changing your profile to "Private Network" makes your computer visible to other devices on the network. Make sure you're connected to a trusted home router, not an open Wi-Fi hotspot at a cafe or hotel.

📊 What connection type do you use most often?
Wi-Fi 2.4 GHz
Wi-Fi 5 GHz
Wired Ethernet
Mobile hotspot

After changing the profile, it is recommended to restart the network adapter or the computer itself for the changes to take effect and for the discovery services to update their statuses.

Launching the world and opening access

The process of creating a game world on a Windows PC is fairly simple, but it does require a specific sequence of steps. Launch the launcher and enter the game, selecting the desired version.

Create a new world or load a save you plan to play. Once loaded into the game world, press Esc to open the pause menu. In the list of options that opens, find the "Open to LAN" button.

☑️ Server launch

Completed: 0 / 5

In the window that appears, you can configure settings for other players: allow cheats or change the game mode. After confirming your actions, a system message will appear in the chat.

Local game hosted on port 25565

Write down or copy the port number listed in the message. This number, along with your computer's IP address, is what other players will need to connect.

Finding the IP address of a host

To connect to the created world, other players need to know the local IP address of the computer running the game. This address is assigned automatically by the router and may change each time you reconnect unless it is statically reserved.

To find out the current address, use the built-in command line utility. Click Win + R, enter cmd and press Enter. In the black terminal window, enter the command:

ipconfig

Find the active connection in the list (usually “Wireless Network” or “Ethernet”) and the line IPv4 addressIt will look like a set of four numbers separated by periods, for example, 192.168.1.45.

Parameter Description Example of meaning
IPv4 Address The local address of a computer on the network 192.168.0.15
Subnet Mask Subnet mask (usually default) 255.255.255.0
Default Gateway Router (gateway) address 192.168.0.1
Port Game server port 25565
What if the address starts with 169.254?

If you see an address in the 169.254.xx range, it means the computer hasn't received an address from the router (APIPA). Check your Wi-Fi cable or password.

Share the resulting IP address and port number with other players. The full connection address will look like this: 192.168.0.15:25565.

Configuring Windows Firewall

The built-in Windows Defender (Firewall) often blocks incoming connections for Java applications, considering them potentially dangerous. If other players can't see the server or connect, this is the problem.

You need to add an exception for the Java executable. Open the Firewall control panel by searching in the Start menu and select "Allow an app."

Find in the list Java(TM) Platform SE binary or javaw.exeMake sure the boxes next to "Private" and, if necessary, "Public" network are checked. If there are multiple entries (for different Java versions), allow access for everyone.

⚠️ Attention: If you're using a third-party antivirus (Kaspersky, ESET, Avast), it may have its own firewall that ignores Windows settings. Check the firewall settings in your antivirus interface.

In some cases, temporarily disabling the firewall completely for diagnostic purposes can help. If the game works after disabling protection, then the problem is definitely with the traffic filtering rules.

Connecting clients and resolving problems

Players who want to join the game should launch Minecraft, go to the Multiplayer section and click Add Server or Direct Connect.

In the server address field, enter the host IP address and port, separated by a colon. For example: 192.168.1.10:25565After confirmation, a connection should occur.

If you receive a "Connection timed out" or "Connection refused" error, check the following:

  • 🔌 All devices are connected to the same Wi-Fi network (make sure your phone isn't sharing mobile data if your PC is on Wi-Fi).
  • 🛡️ The firewall does not block the connection on the host side.
  • 🔄 All participants have absolutely identical game versions (including the build number).
  • 📡 The Wi-Fi signal is stable enough to transmit data in real time.

It's also worth checking if your router has "AP Isolation" enabled. This feature is designed for guest networks and prevents devices from seeing each other, making LAN gaming impossible.

Why does the game crash with a connection error?

This most often occurs due to mismatched game versions or blocked ports by an antivirus program. An unstable Wi-Fi signal, leading to packet loss, can also be the cause.

Is it possible to play via Wi-Fi from different routers?

No, a standard local area network (LAN) only works within a single router. Playing over the internet will require setting up port forwarding or using programs like Hamachi/Radmin VPN.

How to improve performance when gaming on Wi-Fi?

Close background downloads, disable Windows updates while playing, and if possible, use the 5 GHz band, which is less congested with interference than 2.4 GHz.