How to play Minecraft online with a friend over Wi-Fi

Modern technologies make it possible to unite players in shared worlds without complex server configurations or paid subscriptions. A local network via a Wi-Fi router is the most accessible way to immerse yourself in cooperative building and survival while sharing an apartment or house. To organize such a game, you don't need a high-speed internet provider; all you need is a stable connection between devices.

Many users encounter difficulties when trying to connect for the first time, as Windows Firewall settings or router parameters can block a direct connection. In this article, we'll cover every setup step in detail, from checking the game version to fine-tuning your network hardware. You'll be able to seamlessly connect computers, laptops, tablets, and even gaming consoles into a single network.

Creating a local server isn't just a fun way to spend time; it's also a great way to test mods or maps before publishing them. We'll explore various connection methods, including built-in game features and third-party utilities that simplify the process. Get ready for exciting cooperative gameplay, where the only limits are your imagination and the world's resources.

Hardware and software requirements

Before you begin setting up a connection, you must ensure that all devices meet the minimum technical requirements. Homogeneity of versions Game patching is critical: if one player has version 1.20.1 and another has 1.20.2, connecting will be impossible. Make sure all computers or devices have the same Minecraft patch installed.

Wireless signal quality directly impacts gaming comfort and the absence of lag. For stable operation, it is recommended to use a router that supports the standard. 802.11ac or newer, operating in the 5 GHz band. This will provide higher throughput and less interference compared to the 2.4 GHz band.

Devices must be located within a strong signal range. Walls, especially load-bearing ones, and household appliances can significantly weaken the Wi-Fi signal. If you plan to play with a large number of participants or over a long distance, consider using a wired connection for the host or installing a repeater.

📊 What type of device do you most often use for gaming?
Windows PC
Laptop
Tablet (Android/iOS)
Game console

Setting up a local network using the game's built-in tools

The easiest way to create a game for friends is to use the built-in "Open to LAN" feature. This method requires no additional software and works out of the box on most versions of Java Edition. Any computer on the network with sufficient performance to render the world can act as the host.

To start the game, you need to launch Minecraft, select a world to load, and enter it. After the world loads, press the key Esc to open the pause menu. In the list of options that opens, find the "Open to Network" button and click it. The system will prompt you to configure visibility settings and the game mode for other participants.

After confirming your actions, a message will appear in the chat with the port the server is running on (e.g., "Local server running on port 54321"). This port should be noted or written down, as other players will need it to manually connect if automatic detection fails.

☑️ Pre-launch check

Completed: 0 / 4

It's important to understand that this method creates a temporary server that only exists while the host has the world open. If the host leaves the game or closes the application, all other players will be disconnected. For persistent worlds, it's better to consider setting up a dedicated server.

Connecting clients to the created server

Once the host has opened a world, other players can find it automatically or connect manually. In the game's main menu, select "Network Play." The game will begin searching for available local servers on your Wi-Fi network. If configured correctly, the host's world name will appear in the list after a few seconds.

In cases where automatic searching doesn't yield results, you'll need to use a direct connection via IP address. To do this, the host needs to know its local IP address. Open the command prompt by entering cmd in the Start menu and enter the command ipconfigFind the "IPv4 Address" line in the section for your wireless adapter.

Friends need to select the “Direct connection” option in the network game menu and enter the address in the format IP Address:PortFor example, if the host IP is 192.168.1.5 and the port is 25565, the connection string will look like this: 192.168.1.5:25565After entering the data, click "Connect".

What to do if the connection is reset?

If the connection drops immediately after the download starts, try disabling your antivirus while playing or adding Minecraft to your firewall exceptions. Also, check if AP client isolation is enabled on your router.

Make sure your Windows network profile is set to "Private Network" and not "Public." When set to a public profile, the security system blocks device discovery, making it impossible to connect to the local network. You can change this in Network & Internet settings.

Setting up a router and Windows firewall

The main cause of connection issues is often the operating system's security settings. Windows Firewall may be blocking incoming connections for Java or Minecraft itself. A rule must be created to allow traffic for the game's executable file.

To configure the firewall, go to Control Panel, select Windows Defender Firewall, and click Allow an app. Find it in the list. Java(TM) Platform SE binary or Minecraft and make sure the boxes for private and public networks are checked. If the app isn't listed, add it manually using the "Allow another app" button.

On the router side, it's important to check whether "AP Isolation" is enabled. This feature is designed for guest networks and prevents devices connected to the Wi-Fi network from communicating with each other. It should be disabled in your router's wireless settings.

Parameter Recommended value Where to find Impact on the game
Network type Private Windows Settings Allows detection
AP Isolation Disabled Wi-Fi router settings Blocks communication between PCs
Frequency range 5 GHz Router settings Reduces ping and lags
Java port 25565 (TCP/UDP) Firewall Opens access to the server

If you use third-party antivirus software (Kaspersky, ESET, Avast), their built-in firewalls may intercept network control. In this case, we recommend temporarily disabling the antivirus's firewall or creating an exception for the local subnet.

Playing between different versions and platforms

The standard Minecraft protocol does not support cross-platform play between the Java Edition (PC) and the Bedrock Edition (phones, consoles, Windows 10/11 Store). However, there are ways to circumvent this limitation using specialized server wrappers, such as GeyserMC.

To organize such a game, a server supporting both protocols must be running on the host computer. GeyserMC acts as a bridge, translating data packets between Java and Bedrock clients. This allows friends on their phones to connect to the world running on the PC.

Installing GeyserMC requires Java and basic command line skills. After downloading the file geyser.jar It needs to be run in the same folder where the server is located. Configuration is done via a file config.yml, where you can set the port for Bedrock clients (default 19132).

It's worth noting that the performance of such a hybrid server may be lower than that of a native one, as the data conversion process requires additional processor resources. For a comfortable gaming experience, it's best to limit the number of players.

Troubleshooting connection errors and problems

One of the most common errors is the message "Unable to connect to server." This could mean the IP address is entered incorrectly or the port is closed. Check that the port specified in the host's chat matches the port entered by clients. Also, make sure all devices are on the same subnet (the first three digits of the IP address must match).

If the game is listed but disconnects when connecting, the issue may be with the protocol version. Make sure all players have the same mods installed, if any. Missing a mod for one player, or having different versions of the same mod, will definitely cause desyncs and crashes.

In some cases, antivirus software may block Java scripts, not the game itself. Try adding exceptions not only to javaw.exe, but also the entire game folder. Resetting network settings with the command also helps. netsh winsock reset in the command line with administrator rights.

⚠️ Attention: When playing on public Wi-Fi networks (such as cafes and universities), connecting to a friend's local server will be impossible due to the provider's security settings. Use your home network only.

⚠️ Attention: Router and operating system interfaces are regularly updated. The location of firewall or wireless settings may vary depending on the software version. If you don't find the option described above, refer to your device manufacturer's documentation.

Frequently Asked Questions (FAQ)

Is it possible to play via Wi-Fi if one player is connected via cable?

Yes, this is possible. The main thing is that both devices (one via Wi-Fi, the other via cable) are connected to the same router and are on the same local network (the same subnet, for example, 192.168.0.x).

What is the maximum range for Wi-Fi gaming?

The range depends on the router's power and the number of walls. In open spaces, the 802.11ac standard can cover up to 100 meters, but in an apartment with concrete walls, a strong signal for lag-free gaming is usually maintained within 10-15 meters from the router.

Do you need internet to play on a local network?

The game itself doesn't require an internet connection; a local connection between devices is sufficient. However, an internet connection is required to sign in to your Microsoft account, verify the game's license, and download textures or mods upon first launch.

Why can't my friends see my server in the list?

Most likely, your Windows network profile is set to "Public." Change it to "Private" in the network settings. Also, check if your antivirus software is blocking network discovery.