How to Play Minecraft with a Friend on Wi-Fi: From Setting Up a Router to Launching a World

Surviving together in a cubic world is a completely different experience, incomparable to a single-player game. When you build a shared home or fight creepers shoulder to shoulder with a friend, the stakes are multiplied. However, before you set out to mine diamonds, you need to resolve the technical issue of establishing a connection to ensure the process isn't interrupted by connection interruptions.

There are several ways to set up the game, but using a local network through Wi-Fi router This is often the most stable and free solution for those co-located. You don't need to rent remote hosting or deal with complex port forwarding on the global network if you're connected to a single access point. In this article, we'll cover all the setup details so you can focus on gameplay, not troubleshooting.

Hardware and network requirements

The foundation of a successful multiplayer session is high-quality network equipment. If your router is a budget model from ten years ago, it may simply not be able to handle the load of transmitting game packets in real time. For comfortable gaming over a local area network (LAN), it's enough for all devices to be on the same subnet and able to exchange data without firewall blockages.

It is important to understand the difference between internet speed and local network speed. Minecraft When playing over Wi-Fi inside an apartment, it uses virtually no external ISP bandwidth, unless you're downloading mods while playing. The main requirement is a stable signal between the host computer (the one creating the world) and the client (the connecting player).

  • 📡 802.11n router or newer (ac/ax) to ensure sufficient bandwidth.
  • 💻 Two or more devices (PCs, laptops, tablets) that support one version of the game.
  • 🔌 Single connection point: all gadgets must be connected to the same Wi-Fi SSID.
  • ⚡ Ensure your router has a stable power supply, as power surges can cause your session to be interrupted.

It is worth noting that the use of range 5 GHz Preferable over 2.4 GHz, especially if there are a lot of neighboring networks causing interference. 5 GHz provides higher data transfer rates and lower latency (ping), which is critical for smooth in-game movement.

📊 What type of connection do you plan to use?
Wi-Fi only
Wired LAN for host
Mobile hotspot
Via Hamachi

Preparing the operating system and firewall

Before launching the game, you need to make sure that your operating system is not blocking incoming connections. Windows Firewall The built-in macOS firewall often perceives attempts to create a local server as a security threat. If you ignore this step, your friends simply won't see your world in the list of accessible ones.

You'll need to add an exception for Java or the Minecraft executable itself. This can be done through the Network Connections control panel. Without this step, data packets will simply be dropped by the security system, and you'll experience an endless connection wait.

☑️ Check network settings

Completed: 0 / 4

Also, make sure that the network type in Windows is set to "Private" and not "Public." In a public profile, the system hides the computer from detection by other devices by default, making it impossible to create local network.

⚠️ Attention: If you use a third-party antivirus (Kaspersky, ESET, Avast), its built-in firewall may override the default Windows firewall. Check the "Network Protection" or "Trusted Zones" settings in your antivirus interface.

Creating a world and starting a server (Host)

The player who creates the world acts as the server. Their computer is responsible for all physics calculations, mob behavior, and chunk generation. Therefore, the host's PC performance directly impacts the quality of the game for all participants.

Launch the game, select "Single Player," and click "Create New World." In the world settings, be sure to find the "Open to LAN" option. Once enabled, a message with the port number will appear in the chat, such as "Local game hosted on port 25565."

Local game hosted on port 54321

Write down this number; you'll need it to connect manually if the automatic search fails. Your computer has now temporarily become a server, waiting for incoming connections from other players within Wi-Fi range.

Connecting a second player (Client)

The second player should launch the game on their device, ensuring that the Minecraft version is identical to the host's (e.g., 1.20.4). Version incompatibility is the most common reason for connection failure.

Go to the "Multiplayer" menu. The host's server will usually appear in the list automatically after a few seconds of scanning the network. If you see your server in the list, simply click "Connect." If the list is empty, you'll need to connect manually.

To connect manually, click the "Add Server" or "Direct Connection" button. In the server address field, enter the local IP address of the host computer. You can find this by opening a command prompt on the host and entering the command ipconfigLook for the IPv4 Address line, it usually looks like this 192.168.1.X or 192.168.0.X.

Parameter Value for Host Value for the Client
IP address Static (e.g. 192.168.1.10) Automatic (DHCP)
Port 25565 (default) 25565 (or the one in the chat)
Role Creates a world, computing on a PC Connects, receives a picture
Requirements Powerful CPU and RAM Stable Wi-Fi signal

In the address field, enter the host IP and port separated by a colon, for example: 192.168.1.10:25565After clicking the connect button, you should find yourself in the shared world.

Troubleshooting visibility and connectivity issues

It's quite common for devices to fail to see each other, despite following all instructions correctly. This may be due to client isolation settings on the router or specific Java functionality.

Try rebooting your router and all gaming devices. Sometimes the router's DNS cache or ARP table becomes full, preventing new connections. Also, check if the "Guest Network" feature is enabled on your router.

  • 🚫 Isolation of clients: Make sure that the Client Isolation feature, which prevents Wi-Fi devices from communicating with each other, is disabled in your router settings.
  • 🔥 Antivirus: Temporarily disable your antivirus to check if it is blocking local connections.
  • 🔄 Java version: Make sure that both computers have the latest version of Java Runtime Environment installed.
  • 📶 Frequency range: Try switching one of your devices to 2.4GHz if you are experiencing stability issues with 5GHz.
What should I do if it says "Connection refused"?

The "Connection refused" or "Unable to connect" error most often indicates that the port is blocked by a firewall or an invalid IP address is specified. Check that the IP in the connection address bar matches the current host IP (using the ipconfig command). Also, try manually adding an inbound rule for Java in Windows Firewall, specifying the port assigned by the game.

Optimization for weak computers and unstable Wi-Fi

If the game is lagging, stuttering, or lags, the problem may be a lack of resources or a poor signal. Minecraft is very sensitive to single-threaded CPU performance and disk speed.

To improve the situation, you can reduce the render distance in the graphics settings. This will reduce the load on the host processor. It is also recommended to install optimization mods, such as Sodium (for Fabric) or OptiFine, which significantly increase FPS.

⚠️ Attention: Router interfaces and firewall settings may vary depending on the device model and operating system version. If you don't find the option described, refer to your equipment's documentation or the manufacturer's official website.

If your Wi-Fi signal is weak, try moving closer to the router or using a USB Wi-Fi adapter with an external antenna for better reception. Ping stability is more important than its absolute value: fluctuations from 10ms to 200ms will disrupt your gameplay more than a constant 60ms.

Frequently Asked Questions (FAQ)

Do I need internet access to play on a local Wi-Fi network?

No, the game itself doesn't require internet access. Simply having your router create a local network is sufficient. However, internet access is required for the initial game download, license verification, and downloading updates or mods.

Why can friends see the world but can't enter?

Most likely, the issue is with the firewall or antivirus software on the host computer, which is blocking the incoming connection. Also, check that all players are running the same game version and have the same mods installed.

Is it possible to play via Wi-Fi from a phone to a PC?

Yes, this is possible if the game versions are compatible (Bedrock Edition supports cross-platform play). For the Java Edition on PC, additional plugins (GeyserMC) are required to connect mobile devices.

How to increase the number of players on a local network?

A standard Minecraft local network handles 3-5 players well. For larger groups, it's recommended to set up a dedicated server, as the host computer may struggle to handle the data.