How to Play Minecraft with a Friend over Wi-Fi: A Step-by-Step Guide

Playing together Minecraft Transforms solo survival into a thrilling adventure, full of shared victories and unexpected challenges. A local Wi-Fi network is the fastest way to connect with a friend if you're in the same apartment or house, without the need for complex server rentals. However, despite its apparent simplicity, users often encounter computers simply "not recognizing" each other in the list of available worlds.

The problem isn't with the game itself, but with Windows network protocol settings or router configurations that block direct connections between devices. In this article, we'll cover all the nuances of setting up a local game, from basic checks to advanced firewall configuration methods. You'll learn how to create a stable connection that won't drop at the most inopportune moment.

To ensure a successful connection, ensure both devices are connected to the same wireless network. If one laptop is connected to guest Wi-Fi and the other to the primary network, or if different frequency bands are used with client isolation, the connection will fail. Below, we'll outline a solution that will help resolve 99% of common connection issues.

Checking network settings and connection status

The first step is to verify that the operating system is correctly detecting the network type. By default, Windows assigns new connections the "Public Network" profile, which automatically hides your computer from other devices for security reasons. You need to change this setting to "Private Network" to allow discovery.

Open the Network and Sharing Center and ensure that both computers' IP addresses are in the same subnet. Typically, a router assigns addresses like 192.168.1.X, where X is a unique number for each device. If the address prefixes differ, the devices are on different logical networks and will not be able to exchange game packets directly.

It's also worth checking if the device discovery feature is enabled. Without this setting, local area network will not work correctly, and the Minecraft world will not appear in the list of available ones to join. This is a basic level, without which further configuration is pointless.

📊 What is your connection status in Windows?
Private network
Public network
I don't know how to check
I work through a Keenetic router.

It's important to understand that even with the correct settings, antivirus software can block the connection. Temporarily disabling the firewall helps diagnose the problem, but is not a permanent solution.

Setting up sharing in Windows

For your friend to see the world you created, you need to enable network discovery and file sharing. These settings are located in the Network Control Panel and are the foundation for any local service, including the Minecraft game server.

Go to "Network & Internet Settings" and select "Status." Under "Sharing Options," ensure the following options are enabled: "Turn on network discovery" and "Turn on file and printer sharing." It's also recommended to allow Windows to manage HomeGroup connections, if this option is available in your OS version.

  • 🔍 Open Control Panel → Network and Sharing Center.
  • 🔍 Click "Change sharing options" in the left menu.
  • 🔍 In the "Private" profile, select "Turn on network discovery."
  • 🔍 Save the changes and restart your computer to apply the settings.

Once these features are enabled, the system will no longer consider your home network a hostile environment. SMB protocol and other services will start working correctly, allowing games to find hosts on the local segment.

⚠️ Note: If after enabling network discovery, the system asks for confirmation for each new device, this is normal. Select "Yes" or "Allow" to continue the server discovery process.

Keep in mind that settings may be reset after major Windows updates. Checking these settings periodically will help avoid unexpected connection issues in the future.

Setting up a firewall for Minecraft

The most common reason a friend can't see your game is that the built-in Windows firewall is blocking incoming connections. Even if the network is private, standard security rules may prevent Java applications from opening ports to the outside world.

You need to create an allow rule for the game's executable file. This can be done through the graphical interface or the command line. We'll focus on the manual method, as it's the most reliable and straightforward for beginners.

Open Windows Defender Firewall with Advanced Security. In the left pane, select Inbound Rules, then in the right pane, click New Rule. Select the rule type "Program" and specify the path to javaw.exe or directly to the Minecraft launch file.

The path to Java usually looks like this:

C:\Program Files\Java\jre1.8.0_291\bin\javaw.exe

In the next step, select "Allow the connection." Be sure to check the boxes next to all profiles: domain, private, and public. This ensures the rule will work regardless of the network connection type.

  • 🛡️ Name the rule, for example, "Minecraft Server", to easily find it in the list.
  • 🛡️ Make sure the rule is active (green indicator).
  • 🛡️ Repeat the procedure for the file minecraft.exe, if you use a launcher.

After creating the rule, try restarting the world. If your friend still can't see the server, try temporarily disabling the firewall completely for diagnostics. If the connection reappears, the problem lies with the filtering rules.

☑️ Firewall diagnostics

Completed: 0 / 4

Direct connection by IP address

If automatic world discovery doesn't work, you can always connect manually using the host's IP address. This method is the most reliable and bypasses most service discovery issues on the local network.

The host (the one who created the world) needs to know its local IP address. To do this, open the command line by entering cmd in the Start menu, and enter the command ipconfigFind the "IPv4 Address" line for your wireless adapter.

The other player must select “Network Play” → “Direct Connection” in the game menu and enter the address in the format IP_address:PortThe port is usually displayed in the game chat after opening a world for LAN, for example, 25565.

Parameter Default value Where to find Importance
IPv4 Address 192.168.x.x The ipconfig command Critical
Port Random (eg 54321) Game chat (F9) Critical
Protocol UDP/TCP Automatically Average
Ping < 10 ms Debug screen (F3) Desirable

Please note that the port may change each time the world is launched. Therefore, the host must inform the other host of the current port number each time unless you are using a static configuration.

This method is especially useful when playing with different game versions or mods that may conflict with the standard detection protocol. Direct connection bypasses many of the version compatibility checks at the search level.

Resolving server visibility issues

It often happens that all the settings are correct, but the server still doesn't appear in the list. This may be due to network list caching or a Java version conflict. Try restarting the game on both computers after applying all the settings.

Another possible cause is using different versions of the game. Make sure you have the same version installed on all computers. Minecraft And, if mods are used, the same set of modifications. Even the slightest difference in version can make the server invisible.

Secrets to a stable ping

If you're experiencing lag, try lowering the graphics settings on the host computer. It's the computer that processes all the logic and sends data to friends. Closing background applications, such as torrents or a video browser, will significantly improve server responsiveness.

It's also worth checking whether your antivirus is blocking the connection. Third-party security solutions often have their own firewalls that ignore Windows settings. Add the game to your antivirus's exceptions.

If you use laptops with two network adapters (Wi-Fi and Ethernet), make sure the correct interface is prioritized. Windows may be trying to route traffic through a disabled or incorrect adapter.

Alternative ways to create a network

If a traditional LAN isn't working due to ISP or router restrictions (for example, client isolation is enabled), you can use programs that emulate a local area network over the internet. These programs create a virtual tunnel, connecting computers into a single network regardless of their physical location.

A popular solution is Hamachi or Radmin VPNThese utilities allow you to create a virtual network in which computers will "see" each other as if they were connected to the same router. This is ideal for playing with friends in different houses.

  • 🚀 Install the emulator program on all computers.
  • 🚀 Create a network and set a password.
  • 🚀 Connect to the network and make sure the green indicator is on.
  • 🚀 Use the IP address from the program to connect directly to Minecraft.

This method is often more stable than trying to forward ports on the router and doesn't require extensive network security knowledge. However, it may introduce a slight delay (ping) due to traffic encryption.

⚠️ Caution: When using third-party network emulation programs, make sure you download them from official websites. Modified versions may contain malicious code that could compromise the security of your personal data.

To play through such programs, it's important that all participants have the same patch version of the game installed. Otherwise, the connection will be disconnected immediately after logging in.

Optimizing network performance

For a comfortable Minecraft experience, not only connectivity but also data transfer stability are crucial. High ping or packet loss can lead to player teleportation, frozen blocks, and inventory desynchronization.

Make sure the server host (the world creator) has the most powerful hardware and the most stable connection. Their computer acts as the server, calculating physics, mobs, and world changes. A weak host PC will lag all connected players.

If you're using Wi-Fi, make sure you're in an area with a strong signal. Walls and appliances can cause interference, especially in the 2.4 GHz band. Use a different band if possible. 5 GHz, which is less congested and provides higher data transfer speeds.

It's also worth closing all bandwidth-consuming programs, such as Steam updates, torrents, and streams. They compete for bandwidth, which in Minecraft results in stutters and lags.

Frequently Asked Questions (FAQ)

Why can my friend see my world but get an error when connecting?

Most likely, you have different versions of the game or a mismatch in the list of installed mods. The error can also occur if your firewall allows the discovery request but blocks the game port itself. Check your incoming connection rules.

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

Yes, if you use LAN emulation programs (Hamachi, Radmin) that run over the internet. A regular LAN connection via a router won't work in this case, since you're on different physical networks.

How do I find out my IP address for connection?

Open the command prompt (Win+R, enter cmd) and type ipconfigFind the "Wireless LAN Adapter" section and the IPv4 address line. This is your connection address.

Do you need internet to play on a local network?

Internet access isn't required for playing over a local area network (LAN); a router is sufficient to simply connect the devices. However, internet access is required to sign in to your Microsoft account and verify your license when launching the game.