Game of Minecraft Playing with friends in the same apartment or house is a classic that remains relevant even after years. A local area network (LAN) allows you to create a gaming world without the need for expensive hosting or complex router port configurations. All you need is for all your devices to be in the same location. Wi-Fi networks, and you can explore the cubic world together.
However, despite its apparent simplicity, the process often encounters technical obstacles. Windows Firewall may block the connection, and dynamic changes IP addresses Confusing for beginners. In this article, we'll take a detailed look at how to properly set up and connect to a server, avoiding common mistakes.
A successful connection directly depends on the correct router settings and network parameters for each computer. If you want the game to run smoothly, it's important to understand the basic operating principles. local networkWe'll walk you through every step, from setting up your router to entering the connection command in-game.
Network and hardware requirements
The first and most important requirement for stable gaming is that all devices must be connected to the same router. It doesn't matter whether you're using Wi-Fi Or a cabled Ethernet connection, the main thing is to use the same subnet. If one player is using mobile internet and the other is using a home router, the local connection won't work.
It's advisable for the server host (the computer running the world) to have a more powerful processor and sufficient RAM. Its resources will be used to generate the world and process other players' actions. A weak laptop can become a bottleneck, causing lag for everyone in the session.
Please pay attention to the game version. For a successful connection, all players must have it installed. the same version Minecraft (e.g., 1.20.4) and the same set of mods, if used. Even the slightest discrepancy in version numbers will result in a connection error.
Setting up a router and checking IP addresses
Before launching the game, you need to make sure your router is distributing IP addresses correctly. Most home networks use the protocol DHCP, which automatically assigns an IP address to each device. However, for stable server operation, it's best to reserve a permanent address for the host computer.
You can find out your current IP address through the command line. Click Win + R, enter cmd and press Enter. In the black window, enter the command ipconfigFind the "IPv4 address" line—usually numbers like 192.168.1.X or 192.168.0.X. This is the address you'll need to share with your friends to connect.
It's important to check that the network type in Windows is set to "Private" and not "Public." A public profile hides your computer from other devices for security reasons, which prevents you from creating a private network. local game.
⚠️ Attention: If you move to a different house or connect to a different Wi-Fi network, your IP address will change. Your friends won't be able to connect to the old address; they'll need to verify it again.
For clarity, let's look at the main parameters you need to know:
| Parameter | Description | Example of meaning |
|---|---|---|
| IPv4 Address | A unique address of a computer on a network | 192.168.1.45 |
| Subnet Mask | Subnet mask determines the size of the network | 255.255.255.0 |
| Default Gateway | Router (gateway) address | 192.168.1.1 |
| DNS Servers | Name server addresses | 192.168.1.1 |
Creating a world and opening access via LAN
After checking your network, you can move on to setting up the game itself. Launch Minecraft and create a new world or load an existing one. Make sure you're logged in alone, with no other players connected at this point.
While in the game world, press the key Esc to open the pause menu. In the list of options, find the button Open to the web (Open to LAN). When you click it, the game will offer to configure settings for other players, including the game mode and the ability to use cheats.
After confirming the settings, a system message will appear in the chat: "The local network is running on port XXXXX." The numbers after "port" are critical. Write them down, as this number, along with the IP address, will be needed for a direct connection.
☑️ Pre-launch checklist
Now your friends can see the server in the multiplayer list, but it's more reliable to connect manually. To do this, they should select "Network Game" -> "By Address" and enter the host IP, followed by a colon and the port number. The format is: 192.168.1.45:25565.
Configuring Windows Firewall
The most common issue users encounter is that the Windows Firewall blocks incoming connections. Even if all network settings are correct, the security system may consider an external connection attempt suspicious.
To allow the connection, you need to add an exception. Open "Control Panel" -> "Windows Defender Firewall". Select "Allow an app or feature..." from the list. Find Java(TM) Platform SE binary or javaw.exe and make sure that the boxes for private and public networks are checked.
If you use a third-party antivirus (Kaspersky, ESET, Avast), the settings may be located in its interface. Temporarily disabling network protection for testing is often sufficient, but for regular gaming, it's better to create a rule allowing incoming connections to Minecraft's port (25565 by default).
What should I do if my antivirus software prevents me from creating a rule?
Try temporarily disabling your antivirus's firewall completely for 5 minutes. If you can connect, the problem is definitely with your security settings. Add Minecraft to your antivirus's Trust List.
Solving common connection problems
Sometimes computers simply can't see each other, even if the IP addresses are correct. This is often due to sharing settings in Windows. Go to "Network and Sharing Center" and select "Change advanced sharing settings."
In the "Private (current profile)" profile, you must enable the following options:
- 🔹 Enable network discovery
- 🔹 Enable file and printer sharing
- 🔹 Allow Windows to manage HomeGroup connections
It's also worth checking the "Group Policy Host Provider" service. Click Win + R, enter services.mscFind the specified service in the list and make sure it's running (status "Running"). If not, start it.
⚠️ Attention: Some routers have an "AP Isolation" feature. When enabled, Wi-Fi devices are prevented from communicating with each other. Check your router's wireless settings and disable this feature.
Using Hamachi for Complex Cases
If a standard connection via a Wi-Fi router is not possible (for example, due to strict restrictions from a provider or corporate network), you can use local network emulators. Program Hamachi creates a virtual network that runs on top of the regular Internet.
All players must install Hamachi, register, and connect to the same network created by the host. After that, the process repeats: the host opens the world, obtains the IP from the Hamachi window (it starts with 25.xxx), and shares it with their friends. This method is often more stable, as it bypasses many restrictions of home routers.
However, it's worth remembering that Hamachi adds additional latency (ping) because traffic passes through the program's servers. This can be critical for fast-paced gaming, but for leisurely Minecraft building, it's perfectly acceptable.
Optimizing Wi-Fi for gaming
A wireless connection is always less stable than a cable. If you notice players "teleporting" or delays when breaking blocks, try optimizing the signal. Place the host computer closer to the router or use a Wi-Fi adapter with an external antenna.
It also makes sense to switch the router to a frequency 5 GHz, if all devices support this standard. This range is less congested with neighboring networks and provides higher data transfer rates, which is critical for synchronizing the game world.
Close bandwidth-consuming programs (torrents, streams, downloads) on all devices connected to the network. Minecraft is sensitive to packet loss, and even a small drop in speed can interrupt your connection.
Why does the game crash immediately after connecting?
This is most often caused by a lack of RAM on the host or client computer. Try reducing the Render Distance in the graphics settings to 8-10 chunks. Also, make sure everyone has the same version of Java installed.
Is it possible to play on a server from a PC using a phone?
Yes, but only if Minecraft Bedrock Edition is running on your PC or the special GeyserMC plugin for the Java server is used. The standard Java client on your PC and Bedrock on your phone are not directly compatible without an intermediary.
How do I find out what port my router is using?
By default, Minecraft uses port 25565. Unless you've manually changed the settings in the configuration files, use this number. If the server is running on a non-standard port, it will be indicated in the chat message when opening a world.