How to play Minecraft online with a friend using a single Wi-Fi router

Playing cooperatively in a cubic world isn't just fun; it's a great way to spend time together, even in the same room. As long as you have a stable wireless network, creating a local server doesn't require complex technical knowledge or a paid Realm subscription. Simply connect both devices to the same router, and you can explore dungeons or build shared cities without lag.

The main difficulty that beginners face lies in the operating system security settings and router parameters. Local Area Network (LAN) Allows computers to exchange data directly within your Wi-Fi network, bypassing external servers. This ensures minimal ping and high packet transfer speeds, which are critical for a comfortable gaming experience.

In this article, we'll walk you through the connection setup process in detail, focusing on hidden Windows settings that often block access. You'll learn how to correctly determine your network address and why antivirus software can prevent your friends from seeing your world. Following these steps will allow you to launch the game in minutes.

Hardware and game version requirements

Before you begin setting up, you need to make sure your technical equipment meets the basic requirements. To ensure a stable connection, Wi-Fi It's highly recommended that all participants use the same game version. Differences in patches (for example, 1.20.1 and 1.20.4) often lead to protocol incompatibilities and connection failure.

The second important aspect is the account type. Modern versions of Minecraft (starting with Java Edition 1.16 and Bedrock Edition) require an authorized Microsoft account. Pirated versions may require additional network settings or the use of special launchers that support license emulation.

Make sure your router can handle traffic from multiple devices simultaneously without overheating. Older models of the standard 802.11n can create a bottleneck when transferring large amounts of data, especially if there are a lot of mods or resource packs installed in the world.

⚠️ Important: If you're using a guest Wi-Fi network on a router, devices may be isolated from each other at the router firmware level. Make sure "AP Isolation" is disabled in the router settings; otherwise, the computers simply won't see each other in the list of available networks.

It's also worth checking if it's enabled. UPnP (Universal Plug and Play) in your router settings. While port forwarding isn't usually required for local gaming through a single router, this feature simplifies automatic device detection on the network.

Checking the connection and determining the IP address

The foundation of a successful connection is proper addressing. Each device on the local network is assigned a unique IP address, which other players will use to find your server. Without this address, a direct connection will be impossible.

To find your IP address, open the command prompt. Press the key combination Win + R, enter cmd and press Enter. In the black window that appears, enter the command ipconfig and find the IPv4 address line. It usually looks like this: 192.168.1.X or 192.168.0.X.

Write down these numbers, as you'll need to share them with your friend to connect directly. Make sure all players' addresses are on the same subnet (the first three numbers must match).

If the addresses differ in the first three digits (for example, one 192.168.1.5, and the other one 192.168.0.5), this means that the devices are on different networks and will not be able to connect directly without complex router reconfiguration.

Why might an IP address change?

IP addresses on a local network are assigned automatically via DHCP. Each time the router reboots or the lease expires, the address may change. For consistent gaming, it's best to configure a static IP in your network card settings.

Setting up a firewall and antivirus

The most common reason a friend can't see the server is Windows' built-in firewall. The firewall often perceives incoming connections from Minecraft as a potential threat and blocks data packets.

You need to add an exception for the Java platform. Go to Control Panel, select "Windows Defender Firewall," and go to the "Allow an app" section. Find it in the list. Java(TM) Platform SE binary or javaw.exe and make sure that the boxes next to "Private" and "Public" are checked.

If you're using a third-party antivirus (Kaspersky, ESET, Avast), its built-in firewall may override the system firewall. In this case, you should temporarily disable network protection or add Minecraft to the list of trusted applications in your antivirus settings.

Often, the problem can be resolved by simply switching the network profile from "Public" to "Private." In the public profile, Windows hides your computer from detection by other devices.

⚠️ Warning: Completely disabling your antivirus or firewall while gaming is risky. It's better to create a specific rule for a port or application than to leave your system unprotected, especially if you'll be connected to public Wi-Fi networks in the future.

☑️ Network security check

Completed: 0 / 5

Starting the server and connecting a friend

Once your network is ready, you can move on to creating your game world. Open Minecraft, select Single Player, and create a new world or load an existing one. Once you're in the game, press Esc to call up the pause menu.

In the menu, select the "Open to LAN" button. Here you can configure the game mode for your friends (Survival, Creative) and allow or disallow cheat commands. After confirming, a message with the port will appear in the chat, for example: "Local game hosted on port 54321."

Now your friend should log into their Minecraft account, select "Multiplayer," and wait. If automatic detection doesn't work, they should select "Direct Connection" and enter your IP address, followed by a colon and the port that appeared in the chat.

The input format will look like this: 192.168.1.45:54321Please note that the port is assigned randomly each time a world is opened, so you will need to specify it again each time you launch.

Table of common errors and solutions

Even with proper setup, unexpected situations may arise. Below is a table to help you quickly diagnose the problem based on its symptoms.

Symptom Probable cause Solution
A friend sees the server but can't connect. Blocked by firewall Add Java to the firewall exceptions
The server is not displayed in the list. Different versions of the game Update Minecraft to the latest version
Connection timed out error Invalid IP or port Check IP via cmd and port in chat
High ping and lags Weak Wi-Fi signal Move closer to the router or use 5 GHz
Game crashes when connecting Mod conflict Remove mods or sync their versions

An analysis of the table reveals that most problems are related to software conflicts rather than physical hardware. Careful reading of the error code returned by the game often provides a direct clue.

For example, an error Internal Exception: java.io.IOException almost always indicates a connection interruption due to a firewall or antivirus blocking the data flow.

📊 What problem do you encounter most often?
The server is not visible in the list
Unable to connect (timed out)
The game crashes when I log in.
Everything works perfectly.
High ping and lags

Optimizing Wi-Fi for stable gaming

Wireless connections are inherently less stable than wired connections. To minimize lag and prevent characters from "teleporting," it's recommended to switch to a wireless range. 5 GHz, if your router supports dual-band operation.

The 2.4 GHz frequency is often overloaded with signals from neighboring routers, microwave ovens, and Bluetooth devices. This causes interference and packet loss. Switching to 5 GHz will give you clearer airtime and higher throughput.

It's also worth limiting background activity on your devices. Downloading updates, streaming 4K video, or torrents can choke your bandwidth, creating packet queues for gaming traffic.

If the distance to the router is large, use a Wi-Fi repeater or, even better, run an Ethernet cable to at least the server host. The stability of the host directly impacts the experience of all players online.

⚠️ Note: Router interfaces and Minecraft versions are constantly being updated. The location of settings (such as AP Isolation or DHCP) may vary depending on your device model (TP-Link, ASUS, Keenetic). Always consult the manufacturer's official documentation if you can't find the option you need.

Frequently Asked Questions (FAQ)

Is it possible to play via Wi-Fi if we have different internet providers?

Yes, you can. For a local network using a single router, internet access is not required at all. The game runs within your home network. Internet access is only required for launcher authorization and license verification before entering the game.

Why does my friend see my server, but it says "Outdated server"?

This means the game versions don't match. One of the players has a newer or older patch installed. Everyone in the lobby needs to have the same version (e.g., 1.20.4).

Do I need to open ports on my router to play over a single Wi-Fi connection?

No, port forwarding is not required to play within a local area network (LAN). It's only necessary when connecting with friends from other cities over the internet.

How do I play if I have Windows and my friend has a phone (Bedrock Edition)?

Cross-platform play (PC and mobile) requires Minecraft Bedrock Edition on PC. Java Edition is not directly compatible with the mobile version without the use of special bridge plugins like GeyserMC.

Can a virus get in through an open Minecraft port?

The risk is minimal if you play with trusted friends on a local network. However, keeping your firewall enabled and allowing only a specific application (Java) is a security best practice.