The virtual world of cubes has captivated millions of players, but solo survival quickly loses its charm without friends. A common situation arises when all players are in the same apartment or house, connected to a single wireless network, but it's impossible to launch a shared server. Understanding how to set it up correctly local network Minecraft via Wi-Fi will allow you to team up with friends without using third-party hosting services.
The main difficulty is that modern routers and operating systems block direct connections between devices by default for security reasons. You'll need to manually configure your firewall settings and ensure all devices are in the correct network profile. Windows often treats your home network as a public one, which completely prevents other players from discovering your computer.
In this article, we'll cover every step of setting up a game: from checking IP addresses to setting up port forwarding for external connections. You'll learn how to use LAN emulators if direct access is blocked by your ISP, and which router settings are critical for stable ping. The key condition for a successful start is that all devices are in the same subnet (the same first three digits of the IP address).
Checking network settings and IP addresses
Before launching the game, you need to ensure that your devices can see each other at the operating system level. The first step is to check your network type, as the "Public" profile hides your computer from other users. Switch the network status to "Private" or "Home" in your adapter's Wi-Fi settings.
Next, you need to find out the exact IP address of the host (the computer running the world). This is done through the command line, which displays a complete list of network interfaces. Write down this address, as this is what other players will enter to connect.
- 🔍 Click
Win + R, entercmdand press Enter. - 💻 Enter the command in the black window
ipconfigand find the IPv4 address line. - 📡 Make sure the address starts with
192.168.or10.0., which indicates a local network.
If the addresses of the devices start with different numbers (for example, one 192.168.1.5, and the other one 192.168.0.10), they are on different subnets and won't be able to connect. In this case, check your router's DHCP settings or the static IP addresses assigned to your devices manually.
⚠️ Warning: Antivirus software and third-party firewalls (e.g., ESET, Kaspersky) may block the connection even with the correct Windows settings. While playing, try temporarily disabling network protection or adding Java to the exceptions list.
Connection stability directly depends on the quality of the Wi-Fi signal. If the game host is far from the router, packet loss may occur, leading to lag and player teleportation. For best performance, it is recommended to connect the host computer with a cable, even if others are playing wirelessly.
Creating a local network within the game
Once the network infrastructure is ready, you can move on to setting up Minecraft itself. The server launch process is standard for all versions of Java Edition, but it requires careful selection of the world. Open the game, select the desired saved world, and enter it in single-player mode.
While inside the world, press the key Esc to open the pause menu. Select "Open to LAN" from the list of options. The system will prompt you to configure multiplayer settings, including game mode and cheat support. After confirming, a message will appear in the chat indicating that the local server has been launched on the specified port.
Port is a numeric value (eg. 54321), which is added to the IP address to identify a specific application. Without specifying the port, other players will not be able to connect to your world, even if they know the correct IP address of your computer.
- 🌍 Click
Escin a neglected world. - 🔓 Select "Open to the network" and set access rights.
- 📝 Copy the port number from the chat message (it is needed for a direct connection).
Now other players on the same Wi-Fi network can click "Network Play" in the main menu. Your server should automatically appear in the list of available worlds. If it doesn't, use the "Direct Connection" option and enter the host's IP address.
All connected players will be disconnected, so it's best to entrust the role of host to someone with the most stable internet connection and a powerful computer.
Configuring Windows Firewall
The most common cause of connection errors is the built-in Windows Defender. It blocks incoming connections from other devices, considering them potentially dangerous. To allow the game, you need to create a firewall rule for the Java executable.
Open the Firewall control panel using Windows search. You'll need the "Allow an app to interact" section. Find it in the list. Java(TM) Platform SE binary or javaw.exeMake sure the boxes next to your active network (Private and, if necessary, Public) are checked.
The file path often looks like this:
C:\Program Files\Java\jre1.8.0_XXX\bin\javaw.exe
If the default rule doesn't work or the Java file doesn't appear in the list, create a rule manually using "Advanced Options." Select "Inbound Rules," create a new rule for the program, and specify the path to it. javaw.exeIn the connection type, select "Allow the connection".
| Parameter | Meaning | Description |
|---|---|---|
| Rule type | For the program | Allows a specific exe file to run. |
| Action | Allow | Opens access from outside |
| Profile | Private | Valid only on home network |
| Name | Minecraft Java | Any convenient name |
After applying the settings, it's recommended to restart your computer for the changes to take effect. The system often caches old security rules, and a restart is the fastest way to reset network restrictions.
Using emulators: Hamachi and Radmin VPN
If a direct connection through a router is impossible due to provider restrictions (such as lack of a public IP address) or a complex network structure, emulator programs can help. They create a virtual local area network (VLAN) over the internet, making remote computers visible to each other.
The most popular solution remains LogMeIn HamachiAll participants must install the program, register, and create a new network. The host specifies a username and password, and other players connect by entering these details. Once connected, a green indicator should light up next to the computer name in the program interface.
⚠️ Please note: The free version of Hamachi has a limit on the number of users (usually up to 5 people per network). For larger companies, it's better to use Radmin VPN, which has no such limitation and often offers more stability.
Once a virtual network is created, the Minecraft process remains the same. The host opens the world for the network, copies their IP address from the Hamachi window (it will start with 25.x.x.x) and shares it with friends. They enter this address in the direct connection field.
Why might Hamachi not work?
Sometimes the program is blocked by antivirus software or conflicts with network drivers. Try reinstalling the virtual adapter in Hamachi settings or temporarily disabling the firewall to test.
An alternative could be Radmin VPN, which is completely free and doesn't require account registration. The principle is similar: create a network, connect, and copy the IP. This method often results in lower ping when playing online, as it uses more modern tunneling protocols.
Port forwarding for online gaming
If you want your friends to be able to connect to your server not only from the next room but also from other cities, you'll need to set up port forwarding on your router. This is a complex but effective method that requires access to the router's admin panel.
Go to the router settings through the browser by entering the gateway address (usually 192.168.0.1 or 192.168.1.1). Find the section Port Forwarding, Virtual Server or "Forwarding." You need to create a new rule, specifying your computer's internal IP address and the port issued by the game (for example, 25565).
- 🔌 Find the WAN or Advanced Settings section on your router.
- 🔢 Specify the TCP/UDP port (the standard one for Minecraft is 25565).
- 💻 In the IP address field, enter your PC's local IP.
It's important to secure your computer's IP address so the router always routes incoming traffic to it. This can be done by setting up a static IP address in Windows or by reserving an address in the router's DHCP server based on the MAC address of the network card.
After setting up forwarding, your external IP address (can be found on the website) 2ip.ru) will become the server address. Friends will be able to connect to it by entering this IP in the connection field. However, remember that you must have a dynamic or static "white" IP from your provider.
☑️ Check before starting the server
Troubleshooting connection errors and problems
Even with proper configuration, errors such as "Connection refused" or "Timed out" may still occur. Often, the problem stems from mismatched game versions. Make sure the host and all clients are running the exact same Minecraft version (e.g., 1.20.1) and the same mod set if you're using Forge or Fabric.
Another common cause is antivirus software that silently blocks the connection after a database update. Check your security logs and add the entire game folder and Java to the exceptions. You should also try resetting your network settings with the command netsh winsock reset in the command line as administrator.
If the game is noticeably lagging, try lowering the graphics settings on the host side, especially the chunk draw distance. The lower the CPU load during world generation, the faster the server will send data to players over Wi-Fi.
What to do if the server disappears from the list?
Refresh the server list using the Refresh button. If that doesn't help, use a direct IP connection. Sometimes restarting the router helps, as the ARP address table may have changed.
Is it possible to play from a phone to a PC via Wi-Fi?
Yes, as long as the game versions match (Bedrock Edition). Your PC must be running Minecraft for Windows 10/11. Enable "Visible to LAN" in the world settings.
How to increase the number of players beyond 8?
You can specify an argument in the command line when opening a world, but the default local network limit is strictly limited by the engine. For large online games, it's better to rent a dedicated server.
Organizing a multiplayer game opens up new horizons for collaborative creativity and survival. By following these instructions, you can avoid most technical issues and spend time building structures and exploring caves with your friends.