Building castles, exploring caves, and fighting creepers with friends is an experience that's radically different from playing solo. When everyone is in the same apartment or house, there's no need to set up complex internet servers or pay for hosting. All you need is local network, organized through one Wi-Fi routerThis method ensures minimal latency (ping) and a stable connection, as data is transferred directly between devices without access to the external internet.
However, despite the apparent simplicity, users often encounter a situation where one computer simply "doesn't see" the other, even if both are connected to the same access point. The problem isn't with the game itself. Minecraft, and in the Windows operating system settings, which by default block detection of other devices for security purposes. The key to a successful connection is that all devices belong to the same subnet, for example, 192.168.1.xIn this guide, we'll cover not only the standard steps, but also the in-depth network profile settings that most often cause problems.
First, make sure your router is turned on and is distributing IP addresses automatically via DHCP serverThis is the default setting for 99% of home routers. If you use static IP addresses, make sure they are assigned correctly and don't conflict with each other. It's also important that your antivirus software doesn't block incoming connections for the Java platform.
Checking connection and network settings
The first step is to diagnose the physical and logical connection. Computers can be connected to the router in different ways: one via cable, another via Wi-Fi, or both wirelessly. This doesn't matter for the local network to work, as long as they receive addresses from the same device. Open the command prompt by pressing Win + R and entering cmdIn the black window, enter the command ipconfig and find the line "IPv4 address".
Write down this address. Now go to the second computer and repeat the procedure. The first three numbers in the address must match. For example, if the address on the first PC is 192.168.0.105, and on the second 192.168.0.112, then the network is configured correctly. If the addresses look like this 192.168.1.x And 192.168.0.x, then the devices are on different subnets and will not see each other without changing the router settings.
It's also worth checking the visibility of your devices using standard Windows tools. Open File Explorer and go to the "Network" section. If you see the name of the second computer or media server there, then basic network communication is working. If the system reports that network discovery is disabled, this should be corrected before launching the game.
- 📡 Make sure the network connection indicator (Wi-Fi or LAN) is on on both devices.
- 🔢 Compare the first three digits of the IP address on all computers - they must match.
- 🔄 Restart your router if devices do not receive IP addresses automatically.
Setting up a network profile in Windows
The most common reason why Minecraft If the game isn't finding the network, it's because the network profile is "Public." When Windows detects a new network, it assigns it this status by default, making the computer invisible to other devices. To fix this, you need to change the profile to "Private." In Windows 10, this is done through the Settings menu: Start → Settings → Network & Internet → Status.
In the window that opens, find the "Properties" link under your connection image. In the "Network Profile" section, switch the dot from "Public" to "Private." This will allow the system to discover your computer and share files. In Windows 11, the path may be slightly different: Settings → Network & Internet → Wi-Fi (or Ethernet) → Manage known networksSelect your network and also change the type to "Private."
⚠️ Important: By changing your profile to "Private," you allow data exchange with other devices on this network. Only do this if you are sure you are on a secure home network and not in a public place (cafe, airport).
After changing your profile, it is recommended to restart your computer. This ensures that all network services restart with the new access rights. If you have a third-party antivirus (e.g., ESET, Kaspersky, Avast), it may ignore Windows settings and block the connection. In this case, find the "Network" or "Firewall" section in the antivirus settings and allow local connections.
Allowing the game through Windows Firewall
Even with the correct network profile, the built-in Windows firewall may block incoming connections for Java applications. Minecraft It uses the Java platform, and it needs permission to operate on the network. Open the Control Panel (you can find it by searching for "Control Panel") and go to the "Windows Defender Firewall" section.
In the left menu, select "Allow an app or feature through firewall." Click "Change settings" (requires administrator privileges), then "Allow another app." In the window that opens, click "Browse" and locate the Java executable file. It is usually located at C:\Program Files\Java\jre1.8.0_xxx\bin\java.exe or in a folder Program Files (x86).
It is important to add to the permissions list not only java.exe, but also the game launcher itself, if used. After adding, make sure the "Private" network type checkboxes are selected next to the added items. If you're unsure which version of Java the game is using, you can temporarily (for the duration of the game only) completely disable the firewall, but this is less secure.
☑️ Setting up a firewall
Users often forget that there may be multiple Java updates, and the launcher may use different versions. Therefore, if the game won't launch, try finding all the files. java.exe on the disk and add them to the exclusions. It's also worth checking whether your antivirus software is blocking network access for the process. javaw.exe.
Launching the server and connecting players
Now that the network is set up, you can start playing. The player who will be creating the world (the host) must run Minecraft, select "Single Player" and create a new world or load an existing one. Once the world is loaded, click Esc to open the menu and select the "Open to LAN" button. In the window that appears, you can configure the game mode and enable cheats, then click "Open World to LAN."
A message with the port number will appear in the chat, such as "Local server running on port 54321." This port is critical if automatic detection fails. Other players can now access the "Multiplayer" menu. If everything is configured correctly, the created world will appear in the list of available servers at the bottom of the screen.
If the world doesn't appear in the list automatically, players can connect manually. To do this, select "Direct Connection" and enter the host IP address obtained earlier via ipconfig, followed by a colon and the port the game showed. The format will look like this: 192.168.0.105:54321.
| Parameter | Meaning / Action | Where to find |
|---|---|---|
| Host IP address | 192.168.x.x | Team ipconfig |
| Port of the game | 5 digits (random) | In-game chat after opening LAN |
| Java version | Launcher shortcut properties | |
| Network type | Private | Windows Settings |
What to do if the port keeps changing?
The port is generated randomly each time a world is opened. To avoid entering a new port each time, you can run a dedicated server (server.jar) with a fixed port in the server.properties file, but this requires separate configuration of the server folder.
Troubleshooting visibility and ping issues
Sometimes it happens that all the settings are correct, but the game says "Failed to connect to the server" or simply doesn't see the host. First, check the game version. All players must have the same version Minecraft (e.g. 1.20.1). Even a minimal difference in versions (e.g. 1.20 and 1.20.1) will not allow connection.
The second common issue is antivirus software. Even if Windows Firewall is configured, a third-party antivirus can block the connection. Try temporarily disabling network protection in your antivirus software. Also, make sure all computers have the same game mod installed (if you're using mods). This isn't relevant for vanilla games, but if you have one installed, Forge or Fabric, mod sets must be identical.
⚠️ Note: Launcher interfaces and Java versions are frequently updated by developers. If the standard file paths don't match, use a file system search to locate the current location of the executable files.
If the problem persists, try disabling IPv6 in your network adapter's properties. Windows sometimes prioritizes this protocol, causing conflicts on your local network. Go to "Network Connections," right-click the active adapter, then "Properties," and uncheck "Internet Protocol Version 6 (TCP/IPv6)."
Optimizing Wi-Fi for stable gaming
While a local network via a router is fast, a wireless connection is susceptible to interference. For online gaming, Minecraft Internet speed (which isn't used here) isn't as important as a stable signal and low ping within the network. If your router is dual-band, it's best to connect all devices to the 5 GHz network, as it's less congested and provides higher data transfer speeds between devices.
The router's location also plays a role. If the host (the world creator) is located far from the router, data packets may be lost, causing lag or connection interruptions for all players. Ideally, the host computer should be connected via cable, while the others can play via Wi-Fi. This will ensure maximum stability in the gameplay.
- 📶 Use the 5 GHz band to reduce interference from neighboring networks.
- 🔌 Connect the host computer with an Ethernet cable for better stability.
- 🚫 Avoid using powerful household appliances (microwaves) near the router while gaming.
If you're playing with a large group (more than 4-5 people), the load on the host computer's CPU and Wi-Fi connection increases. In this case, it's recommended to reduce the chunk draw distance in the game settings. This will reduce the amount of data transferred over the network when players move, making the game smoother.
Frequently Asked Questions (FAQ)
Do you need internet to play on a local network?
No, an internet connection is not required. All data is transmitted within your home network via your router. However, an internet connection may be required to verify the game's license when signing in to your Microsoft account if you're playing a licensed version.
Why can't computers see each other even though they have the same Wi-Fi?
Most likely, you have the "Public" network profile enabled or a firewall is blocking the connection. Check your network discovery settings and make sure your antivirus isn't blocking Java.
Is it possible to play from a phone (Android/iOS) on a computer?
Yes, but only for Minecraft Bedrock Edition. The Java Edition for PC and Bedrock mobile are not directly compatible. To play between PC and phone, you must also have Bedrock Edition installed on your PC (available in the Microsoft Store).
How do I find my IP address if the command line doesn't work?
You can click Win + R, enter ncpa.cpl, double-click the active connection and click "Details." Your IP address will be listed in the "IPv4 Address" line.
The game crashes when a second player joins. What's wrong?
This could be due to insufficient RAM or processor power. Try reducing graphics settings, reducing the draw distance, and closing other heavy programs on the host computer.