How to Play Minecraft With a Friend on the Same Wi-Fi Network: A Complete Guide

Play Minecraft with a friend through one Wi-Fi network — This is one of the easiest ways to organize a co-op adventure without the expense of renting servers or purchasing Realm. However, even on a local network, issues can arise: from the simple "not seeing the world" to lags and crashes. This article will help you understand all the nuances, from choosing the right game version to fine-tuning your router if standard methods fail.

Many users mistakenly think that for local play it is enough to simply open the world to the network - but in practice it requires proper configuration port 25565, check your firewall and sometimes even change the settings Java or Bedrock EditionWe will consider both versions of the game (via LAN world And local server), and we'll also give tips on troubleshooting common errors. If you've never set up a gaming network before, don't worry—the instructions are suitable even for beginners.

⚠️ Attention: Router network settings parameters (for example, UPnP or Port Forwarding) may vary depending on the device model. If your router does not support automatic rules for Minecraft, manual configuration will be required.

1. Preparation: What you need to play over Wi-Fi

Before you begin setting up, make sure you have everything you need:

  • 📶 Shared Wi-Fi network: Both devices must be connected to the same router. If used guest network or signal repeater, the connection may not work.
  • 🎮 Same Minecraft version: For Java Edition And Bedrock Edition (Windows 10/11, consoles, mobile devices) the setup process is different. You can only play together within the same edition—cross-platform play only works within Bedrock.
  • 🔌 Stable power supply for the router: If your router is overheating or operating at its maximum capacity, lag may occur. For gaming, it's best to use a wired connection to the host (if possible).
  • 🛠️ Administrator rights: On the PC that will be the host (where the world is running), you will need access to the firewall settings and network parameters.

If you play on Java Edition, make sure you have the latest version installed Java Runtime Environment (You can download it from the official website) Oracle). For Bedrock No additional software is required, but both players must have the latest game updates.

⚠️ Attention: On some corporate or public networks (for example, in universities, hotels) the port may be blocked 25565, used MinecraftIn this case, local play over Wi-Fi is impossible—you'll have to use a VPN or a rented server.

📊 What platform do you play Minecraft on?
Java Edition (PC)
Bedrock Edition (Windows 10/11)
Bedrock on console (Xbox/PlayStation)
Minecraft on Mobile (Android/iOS)
Other

2. Method 1: Playing via LAN-world (for Java Edition)

This is the easiest method for Java Edition, which doesn't require a server installation. One player creates a world and opens it to the local network, while the second player connects via the multiplayer menu.

Steps for the host (the one who creates the world):

  1. Launch Minecraft and select Singleplayer → Create a new world (or upload an existing one).
  2. When creating a world, make sure the option is enabled Allow cheats (optional, but useful for debugging).
  3. Launch the world and click Esc → Open for LAN.
  4. In the window that appears, select the game mode (Survival, Creation) and enable cheats (optional). Click Launch LAN World.
  5. Remember the port that appears in the chat (usually 25565, but may differ).

Steps for the second player:

  1. Launch Minecraft and go to Multiplayer.
  2. The system should automatically detect the LAN world. If this does not happen, click Direct connection and enter the host IP address with port in the format 192.168.x.x:25565.
  3. Connect to the world.

If the world does not display automatically, check:

  • 🔍 Both devices are connected to one Wi-Fi network (not via mobile Internet!).
  • 🔥 Windows Firewall doesn't block Minecraft (see section 4).
  • 🔄 Port 25565 not busy with another application (check via Command line:
    netstat -ano | findstr 25565
    ).

Both devices are on the same network|Same Minecraft version|Host is running a LAN world|Firewall allows connections|Port 25565 is free-->

3. Method 2: Local Server for Bedrock Edition

IN Bedrock Edition (including Windows 10/11, Xbox, PlayStation and mobile versions) there is no built-in LAN world feature like in JavaInstead, you'll have to use local server or cloud solutions like Minecraft RealmsWe'll look at the free option with a PC server.

Option A: Official Bedrock Server (Windows/Linux)

Microsoft provides a free server for Bedrock Edition, which can be run on a PC:

  1. Download the server from official website (file bedrock-server-x.x.x.x.zip).
  2. Unzip the archive into a separate folder and run bedrock_server.exe.
  3. Configuration files will be generated on first run. Open server.properties in notepad and find the lines:
    server-name=My Bedrock Server
    

    gamemode=survival

    difficulty=normal

    level-name=Bedrock level

    server-port=19132

    Change the settings as desired (eg. gamemode=creative).

  4. Save the file and restart the server.

Option B: Connecting from a mobile/console

To connect to the server from other devices:

  1. On the host PC (where the server is running), find the local IP address via Command line:
    ipconfig

    Look for the line IPv4 address (usually 192.168.x.x).

  2. On your mobile device or console in Minecraft select Play → Servers → Add Server.
  3. Enter the host IP address and port 19132 (For example, 192.168.1.100:19132).
  4. Connect to the server.

⚠️ Attention: On consoles (Xbox, PlayStation) you may need Xbox Live subscription or PlayStation Plus Even for local play. Check the terms in your account settings.

How to Find an IP Address on Mac/Linux

For Mac: Open Terminal and enter ifconfig | grep "inet " (look for an address like 192.168.x.x). For Linux: Use the command hostname -I or ip a.

4. Configuring your router for stable gaming

If your connection isn't working or drops frequently, the problem may be with your router settings. Here's what to check:

Parameter Recommended value Where to find
UPnP (Universal Plug and Play) Included Settings → Local Network → UPnP
Port Forwarding For Java Port 25565 (TCP/UDP) to host IP Port Forwarding → Add Rule
Port Forwarding For Bedrock Port 19132 (UDP) to host IP Same menu as for Java
DHCP (automatic IP assignment) Enabled (or reserve IP for host) Local Area Network → DHCP
QoS (Quality of Service) Priority for the host device Settings → QoS → Rules

How to configure Port Forwarding manually:

  1. Go to your router's control panel (usually at 192.168.0.1 or 192.168.1.1).
  2. Find the section Port forwarding (or Port Forwarding).
  3. Add a new rule:
    • For Java Edition: port 25565, protocol TCP/UDP, host IP address.
    • For Bedrock: port 19132, protocol UDP, host IP address.
  • Save the settings and reboot the router.
  • ⚠️ Attention: After setup Port Forwarding Your local server will be vulnerable to external attacks if your router's IP address is known to third parties. Don't share it publicly and disable forwarding when you're not playing.

    5. Solving typical problems

    Even with proper setup, errors can still occur. Here are the most common ones and how to fix them:

    • 🚫 "Unable to connect to the world":
      • Make sure the host is running the world in LAN mode (for Java).
      • Make sure your firewall isn't blocking Minecraft (see below).
      • Try connecting via direct IP (for example, 192.168.1.100:25565).
    • 🐢 Severe lags or crashes:
      • Close background programs that consume internet (torrents, streams).
      • Reduce the number of mobs in the world settings (difficulty=peaceful).
      • If you are playing on a weak PC, reduce the render distance (F3 + F V Java).
    • 🔒 "Server not responding" (for Bedrock):
      • Check that the port 19132 open in firewall.
      • Make sure the server is running on the host (bedrock_server.exe).
      • Try turning it off UPnP in the router and configure Port Forwarding manually.

    How to open a port in Windows Firewall:

    1. Open Control Panel → Windows Firewall → Advanced settings.
    2. Select Inbound Rules → Create Rule.
    3. Please specify For the portTCP25565 (or 19132 for Bedrock).
    4. Allow the connection and apply the rule to all profiles (domain, private, public).

    6. Game Optimization: How to Reduce Lag

    Even on a local network, latency can occur, especially if the host is a slow PC or the router is overloaded. Here's how to improve performance:

    • For host (PC):
      • Close all background programs (especially your browser with open tabs).
      • In the settings Minecraft reduce Video memory (V Settings → Video settings).
      • Use light textures or shaders (eg. OptiFine with settings Fast).
    • 📡 For router:
      • Switch to the channel 5 GHz (less interference).
      • Turn off devices not used for play (smart bulbs, TVs).
      • If the router supports QoS, set the priority for the host IP address.
    • 🎮 For the player (if the client lags):
      • Reduce the render distance to 4-8 chunks.
      • Turn it off Clouds And Particle effects in the graphics settings.
      • Use a wired connection (if possible).

    Advanced optimization for Java Edition:

    If lags persist, try running the server with additional parameters. JavaTo do this:

    1. Create a text file start.bat in the server folder.
    2. Add the following line to it:
      java -Xmx2G -Xms1G -jar server.jar nogui

      Where -Xmx2G — maximum RAM for the server (specify no more than half of the available PC memory).

    3. Save the file and run it.

    7. Alternative ways to play with a friend

    If playing over Wi-Fi doesn't work or is inconvenient, consider alternatives:

    • 🌍 Minecraft Realms:
      • Official hosting from Mojang, supports up to 10 players.
      • Cost: from ~300 rubles/month (as of 2026).
      • Pros: cross-platform, automatic backup.
      • Cons: paid, limited mods.
    • 🖥️ Rented server:
      • Services like Aternos (free) or Shockbyte (paid).
      • Pros: access from any network, mod support.
      • Cons: possible lags, slot limitations.
    • 🔗 Hamachi/ZeroTier:
      • Programs for creating a virtual local area network via the Internet.
      • Pros: Works like a local game, but over the Internet.
      • Cons: high latency, requires configuration.

    ⚠️ Attention: When using Hamachi or similar services, your IP address may become visible to other users of the program. Do not share account login information. Minecraft or personal information.

    8. Security: How to protect your game

    A local server is vulnerable to attack if you don't take precautions. Follow these tips:

    • 🔐 Restrict access:
      • Do not share the server IP address outside your trusted circle.
      • Use whitelist (whitelist=true V server.properties) and add only friends' nicknames to it.
    • 🛡️ Update your software:
      • Update regularly Minecraft and server software.
      • Install the latest version Java (For Java Edition).
    • 🔍 Mods and plugins:
      • Download mods only from official sources (CurseForge, Modrinth).
      • Check files for viruses before installation.
    • 📡 Router settings:
      • Turn it off Port Forwarding, when you're not playing.
      • Use a strong password for Wi-Fi (standard WPA3).

    How to enable whitelisting on the server:

    1. Open the file server.properties (For Java or Bedrock).
    2. Find the line white-list=false and change to true.
    3. Save the file and restart the server.
    4. Open the server console and enter:
      whitelist add Nickname

      Where Nickname - friend's nickname.

    FAQ: Answers to frequently asked questions

    Can I play with a friend on different versions of Minecraft?

    No, co-op play requires the same version (for example, 1.20.4). The exception is servers with plugins like ViaVersion, which allow you to connect from different versions, but this does not always work reliably.

    Why can't my friend see my LAN world even though we're on the same network?

    Check:

    1. The host is in the enabled mode Open for LAN.
    2. The firewall does not block Minecraft (add exception for port 25565).
    3. Both devices are connected to one subnets (for example, 192.168.1.x, and not 192.168.0.x).
    4. It's enabled on the router. UPnP or configured Port Forwarding.

    If nothing helps, try connecting via direct IP (see section 2).

    How to play Minecraft on Wi-Fi on Android/iOS?

    Available on mobile devices only Bedrock EditionYou will need:

    1. Launch the server on your PC (see section 3).
    2. On a mobile device in Minecraft choose Play → Servers → Add Server.
    3. Enter the PC's IP address and port 19132.

    ⚠️ On Android You may need to disable battery optimization for Minecraft, otherwise the game will turn off in the background.

    Is it possible to play via mobile internet (4G/5G)?

    No, for local play over Wi-Fi both devices must be connected to one routerIf you want to play via a mobile network, you will need:

    • Rented server (eg. Realms or Aternos).
    • A program for creating a VPN network (for example, ZeroTier).

    Please note that playing over a mobile internet connection may result in high latency and data usage.

    How do I transfer a world from a single-player game to a server?

    For Java Edition:

    1. Find the world folder in %appdata%\.minecraft\saves.
    2. Copy the world folder to the folder worlds on the server.
    3. In the file server.properties please indicate level-name=world_folder_name.

    For Bedrock Edition:

    1. Export the world through Settings → World Export (on mobile or console).
    2. Transfer the file to your PC and unzip it into a folder worlds servers.