How to Play Minecraft Online on a Single Wi-Fi Connection on PC: A Complete Guide from Setup to Optimization

Game of Minecraft with friends on a local network via a shared Wi-Fi - one of the most convenient ways to have fun without spending money on renting servers or buying RealmsHowever, many people encounter problems: the game can't detect the generated world, the connection constantly drops, or lag occurs even on powerful PCs. In this article, we'll look into these issues. All the nuances of setting up a multiplayer game in Minecraft over a single Wi-Fi network, including solutions to common errors and ways to improve performance.

It's important to understand that playing over a local Wi-Fi network is different from playing on online servers: there are no intermediaries, and all data is transferred directly between devices via the router. This means that connection quality depends on network settings, router power, and even the location of the computers. We'll look at options for Java Edition And Bedrock Edition, as the setup process for each is fundamentally different. If you've never tried online play before, don't worry: follow the step-by-step instructions, and in just 10 minutes, you'll be inviting friends to your world.

Preparing to play: What to check before setting up

Before you start creating a local world, make sure your network is ready for multiplayer gaming. Here are some key points that are often overlooked:

  • 🔌 All computers are connected to one Wi-Fi router.If someone is using mobile internet or a different router, the connection will fail.
  • 🖥️ Minecraft versions are the same. For Java Edition must be the same version (for example, 1.20.4), for Bedrock — last update.
  • 🛡️ Firewall and antivirus do not block the game. Often Windows Defender or Kaspersky interfere with network interaction.
  • 📡 The router supports local area networkIn rare cases, budget models disable the function. Multicast, necessary for detecting games.

Pay special attention versions of the gameIf you have Java Edition, check it in the launcher: it is indicated in the lower right corner when selecting a profile. For Bedrock updates are installed automatically through Microsoft Store or Xbox AppIf the versions are different, the game will either not see the world or will return an error. "Incompatible version".

⚠️ Warning: If you use fashion or resource packs, make sure they are installed it's the same on all computersEven small differences in configuration can lead to crashes or an out-of-sync world.
📊 What version of Minecraft do you use for online play?
Java Edition
Bedrock Edition (Windows 10/11)
Bedrock on console
I don't know the difference
Other

Setting up a local network for Minecraft on Windows

For computers to be able to "see" each other via Wi-Fi, the network environment must be configured correctly. In most cases, Windows automatically assigns IP addresses to devices via DHCP, but sometimes manual adjustment is required.

First, check that all PCs are on the same working group (usually WORKGROUP). To do this:

  1. Click Win + R, enter sysdm.cpl and go to the tab Computer Name.
  2. Make sure the field Working Group contains the same value on all devices.
  3. If the names are different, click "Change" and enter WORKGROUP (case not important).

Next, turn it on network discovery:

  1. Open Control Panel → Network and Internet → Network and Sharing Center.
  2. Select Change advanced sharing settings.
  3. Enable options:
    • 🔄 "Turn on network discovery"
    • 📂 Turn on file and printer sharing
    • 🔒 "Use 128-bit encryption..." (optional)
Parameter Recommended value Explanation
Network type Private In the Wi-Fi settings (right-click on the network icon → "Properties"), select "Private networks"
IP address Automatic (DHCP) If the router does not issue an IP, assign it manually (for example, 192.168.1.100)
Firewall Allow javaw.exe And bedrock_server.exe Add exceptions for Minecraft in your firewall settings
⚠️ Warning: If you use VPN or proxy, disable them before playing. These services can redirect network traffic, interfering with your local connection.

Creating a Local World in Java Edition

IN Java Edition The process of creating a local world for friends consists of two stages: opening the world to the network And connecting other playersHere are the step-by-step instructions:

  1. Launch Minecraft and select Single player.
  2. Create a new world or open an existing one.
  3. In the game, press Esc and select Open to Local Network.
  4. In the window that appears, configure the parameters:
    • 🎮 Game Mode — choose "Survival", "Creation" or "Adventure".
    • 🔒 "Allow cheats" - Enable if you plan to use commands.
  • Click "Start the World in LAN"A message with the port will appear in the chat, for example: "The local game server is running on port 12345.".
  • Now other players can connect. To do this, they need to:

    1. Launch Minecraft and select Network gameDirect connection.
    2. Enter the IP address of the host (the computer running the world) and the port, separated by a colon. For example: 192.168.1.100:12345.
    3. To find out your local IP address on Windows, open Command line (Win + Rcmd) and enter:

      ipconfig

      Look for the line IPv4 address in the block Wireless Network Adapter.

      Make sure all players are on the same version of Minecraft|

      Check that your firewall is not blocking the port (default 25565)|

      The host must be connected to Wi-Fi, not via cable (otherwise the IP will be different)|

      If it doesn't connect, try disabling your VPN/proxy-->

      Bedrock Edition Customization Features

      Bedrock Edition (version for Windows 10/11, consoles and mobile devices) uses a different connection protocol - RakNet, and not TCP/IP, as in JavaThis means that to play on a local network, you don't need to manually open ports or search for IP addresses. Instead, the system discovering games via Xbox Live.

      Here's how to connect in Bedrock:

      1. The host (world creator) launches Minecraft and creates a new world or opens an existing one.
      2. In the world settings (before entering) enable the following options:
        • 🌍 Visibility on the local network"On"
        • 👥 Multiplayer game"On"
        • 🔒 Player Permissions — choose Members or "Friends".
    4. After entering the world, other players must:
      • Launch Minecraft and go to the section "Play""Friends".
      • The created world will appear in the list of local games (this may take up to 30 seconds).

    If the world is not displayed, check:

    • 🔄 All devices are authorized in Xbox Live (even on PC).
    • 📡 The router doesn't block UDP protocol 19132-19133 (ports Bedrock).
    • 🖥️ Enabled in Windows settings on the host Network Discovery (see previous section).

    Troubleshooting connection issues

    Even with proper setup, errors can still occur. Let's look at the most common ones and how to fix them:

    Problem Possible cause Solution
    The game doesn't see the local world. The firewall is blocking Minecraft. Add an exception for javaw.exe (Java) or Minecraft.Windows.exe (Bedrock)
    The connection is lost after 1-2 minutes The router disconnects inactive connections. Disable it in your router settings. "Wi-Fi Energy Saving" or "Auto Disconnect"
    High ping (lag) even on a local network Wi-Fi channel congestion Switch the router to a channel 5 GHz or reduce the number of connected devices
    Error: "Unable to connect to the world" Version or mod mismatch Check the game versions and remove all modifications

    If the problem persists, try alternative way to connect via IP (relevant for Java Edition):

    1. Find out the IP address on the host (command ipconfig).
    2. Open the port 25565 in the router settings (section "Port Forwarding").
    3. Other players connect via Direct connection, introducing [Host IP]:25565.
    ⚠️ Warning: If you open ports on your router, make sure the admin panel password has been changed from the factory default. Otherwise, your network can be hacked through firmware vulnerabilities.
    What should I do if my router doesn't support Port Forwarding?

    Some providers (such as Beeline or MTS) block access to router settings. In this case:

    1. Use Hamachi or ZeroTier to create a virtual network.

    2. Try connecting via mobile hotspot (share Wi-Fi from your phone).

    3. Contact your provider's support team and ask them to unlock the settings (specify that you need them for "local play").

    Performance optimization and lag reduction

    Lag in local Wi-Fi gaming can occur even on powerful PCs. The main causes are:

    • 📶 Weak Wi-Fi signal - walls, distance from the router or interference from other networks.
    • 🖥️ Insufficient host resources - if the server computer has little RAM or a weak processor.
    • ⚙️ World Settings - too many mobs, redstone, or loaded chunks.

    Here's how to improve performance:

    • 🔧 For the host (Java Edition):
      • In the file server.properties (folder .minecraft/saves/[world name]) install:
        view-distance=4
        

        simulation-distance=3

        max-tick-time=60000

      • Close all background programs, especially torrents or streaming services.
    • 📡 For Wi-Fi network:
      • Switch your router to standard 802.11ac (5 GHz) - it is less loaded.
      • Set a static channel (eg. 36 or 149) instead of "Auto".
      • Turn off devices that consume traffic (IP cameras, smart speakers).

    If the lags persist, try use cable Instead of Wi-Fi, at least for the host. This will reduce latency and stabilize the connection. Also, check the host's CPU load: if it exceeds 80%, reduce the number of simultaneously loaded chunks or disable resource-intensive modifications.

    Playing via Hamachi or ZeroTier: An Alternative for Complex Networks

    If your router blocks local communication or the players are on different networks (for example, one via Wi-Fi, the other via cable from the same provider), you can use programs to create a virtual network:

    • 🔗 Hamachi — a simple tool for creating a VPN network. Suitable for Java Edition.
    • 🌐 ZeroTier — a more modern alternative with better performance.
    • 🎮 Radmin VPN - optimized for games, but requires registration.

    Instructions for Hamachi:

    1. Download and install LogMeIn Hamachi to all computers.
    2. Create a new network ("Create a new network") on the host.
    3. Other players connect to this network via "Join an existing network".
    4. In Minecraft, use the IP address that Hamachi assigned to the host (starts with 5.).

    The advantage of this method is that it works even through different routers (for example, if friends are connected to different providers). However, be careful: virtual networks can slow down the Internet, if you have a slow connection speed.

    FAQ: Answers to Frequently Asked Questions

    Can I play on a local network if I have a pirated version of Minecraft?

    Technically yes, but there are some nuances:

    • IN Java Edition Pirate clients often have modified network protocols, which prevents them from connecting to the original host.
    • IN Bedrock Edition authorization required via Xbox Live, so pirated versions do not support multiplayer.
    • Using pirated software violates Mojang's terms of service and may result in account blocking.
    Why can't I see my friend's world in Bedrock Edition even though we're on the same network?

    The problem may be related to:

    • Lack of authorization in Xbox Live (even on PC).
    • Protocol blocking RakNet antivirus or firewall.
    • Router settings: some models (for example, TP-Link with firmware < 1.0.5) do not support Multicast to detect games.

    Solution: Try connecting via the host's IP address (in Bedrock To do this you need to enter [IP]:19132 in manual connection).

    How do I play on LAN if I have a Mac or Linux?

    The setup process is almost identical to Windows:

    • For Java Edition use the same steps (opening the world for LAN via Esc → Open to LAN).
    • To find out your IP address:
      • On Mac: System Preferences → Network → Wi-Fi → Advanced → TCP/IP.
      • On Linux: team ifconfig or ip a.
    • For Bedrock Edition On Linux you will need an emulator (for example, Proton), since there is no official version.

    The only difference is possible firewall issues (ufw (On Linux or the built-in firewall on Mac). Manually allow incoming connections for Minecraft.

    Is it possible to play over a local network via a mobile hotspot?

    Yes, but with restrictions:

    • Create a hotspot on your phone and connect all devices to it.
    • IN Bedrock Edition The world should appear in the list of local games automatically.
    • IN Java Edition use the IP phone (usually 192.168.43.1 for Android) and port 25565.

    Please note: mobile internet may have high ping, and some operators block P2P connections.

    How can I make the world persist after closing the game?

    IN Java Edition The world is saved automatically when opened for LAN, but if the host closes the game, other players will be disconnected. To continue the game without a host:

    • Use dedicated server (download server.jar With official website).
    • Run the server on a separate PC or Raspberry Pi.
    • For Bedrock can be used Bedrock Dedicated Server (available for Windows and Linux).

    The server version consumes fewer resources than playing with an open LAN and allows you to connect even after a host reboot.