Many gamers find themselves in a situation where their home internet is down, their router is broken, or they simply can't connect to the internet, but they really want to play a co-op game with a friend. Luckily, Minecraft It features a flexible architecture that allows for local area network (LAN) sessions without the need for a traditional wireless router. This opens up the possibility of gaming within a single apartment, home, or even on the go, using only a direct connection between devices.
There are several proven methods for establishing such a connection, each with its own technical considerations and hardware requirements. You can use a direct Ethernet cable, create a simulated network via a mobile phone, or use Windows' built-in port forwarding features. Understanding the principles of operation TCP/IP protocols At a basic level, it will help you quickly set up your game, even if standard automatic detection methods don't work.
In this article, we'll cover all the current methods for creating a local server, paying special attention to the nuances of firewall configuration and entering IP addresses correctly. The most stable result when playing without a router is always achieved with a wired connection via an Ethernet cable, as it ensures minimal ping and no packet loss. Follow the instructions to turn any computer into a fully functional host for your cube world.
Using the Mobile Hotspot feature in Windows
The fastest and most modern way to connect two computers into a single gaming network without a physical router is to use the built-in Windows 10 or 11 feature called "Mobile Hotspot." Your main computer running the game will act as a virtual router, distributing IP addresses to other devices.
First, you need to open the system settings by going to the section Network and InternetIn the left menu, select "Mobile Hotspot." Here, you'll need to select a connection source (even if there's no internet connection, this feature will create a local network) and set a network name and password for security. Once enabled, your PC will begin broadcasting a signal that other laptops or smartphones can connect to.
The second computer must find the created network in the list of available Wi-Fi connections and enter the set password. Once the connection is established, the operating system will automatically assign IP addresses to both devices on the same subnet, which is key for operation. local networkNow you can launch the game and open the world for online play.
⚠️ Caution: When using a mobile hotspot, your antivirus software may classify the new network as "Public." In this case, you must manually change the network profile to "Private" in the adapter settings; otherwise, the firewall will block incoming connections from the second player.
Direct connection of computers via Ethernet cable
If you require maximum stability and minimal latency, the best solution is to directly connect the two computers using a network cable. EthernetModern network cards support Auto-MDIX technology, allowing you to use a regular patch cord without having to find a special crossover cable, as was the case in the era of older computers.
Physically connect the network ports of both PCs with a cable. Windows should detect the new connection, but since we don't have a DHCP server (router), addresses won't be assigned automatically. You'll need to manually enter static IP addresses in the network adapter settings. This is done through the Network Control Panel: Control Panel → Network and Internet → Network and Sharing Center → Change adapter settings.
On the host (the computer running the game) and the client (your friend's computer), you need to specify addresses from the same subnet. For example, on the first PC, specify the IP 192.168.1.1, and on the second 192.168.1.2Leave the subnet mask as default. 255.255.255.0The gateway and DNS can be left blank or duplicated as the host's IP address, as we don't need internet access, only local communication.
☑️ Checking the cable connection
After setting up the addresses, check the connection with the command pingOpen the command prompt and enter the second computer's address. If packets are received and sent, the physical and logical network layers are configured correctly, and Minecraft should see the server in the list of local games or accept a direct connection.
Sharing Internet from a phone (Tethering)
A smartphone can become a fully functional replacement for a company's router (LAN). Tethering mode allows you to turn your phone into a gateway for computers to connect to. This method is especially convenient if you don't have a long network cable handy and the built-in Wi-Fi module on one of your laptops is faulty.
Enable tethering on your phone via a USB cable or activate a Wi-Fi hotspot. Connect both computers to this network. It's important to understand that in this case, the phone acts as a DHCP server, automatically assigning addresses to all connected devices. This eliminates the need for manual TCP/IP configuration, as is the case with a direct cable.
Although this method uses the phone's Wi-Fi module or USB port, it doesn't require an external router in the apartment. However, keep in mind that data transfer speeds may be lower than with a direct cable connection, especially if the phone is operating in USB modem mode, which limits the port's bandwidth.
Does traffic affect the phone?
Yes, as long as there's no restriction in the access point settings. Although playing over a local network doesn't consume mobile data (unless you're accessing Mojang servers or downloading textures), the mere act of sharing Wi-Fi can quickly drain your phone's battery. It's recommended to keep your smartphone charged.
Setting up a firewall and access rules
A common problem users encounter when playing without a router is the connection being blocked by the built-in Windows firewall. Since you're creating a new network, the system by default considers it potentially dangerous and blocks incoming requests to the ports used by it. Minecraft Java Edition or Bedrock.
To allow the connection, you need to add an exception. Open Windows Defender Firewall by searching in the Start menu. Go to the "Allow an app or feature through firewall" section. Click "Change settings" (requires administrator rights) and find it in the list. javaw.exe or Minecraft.exeMake sure the boxes next to the "Private" and, if necessary, "Public" profiles are checked.
If an automatic rule isn't created, you can create one manually by specifying the port. The standard port for Minecraft is 25565In the firewall settings, select “Inbound Rules” → “Create Rule” → “For Port” → TCP and indicate 25565Allow connections for all profiles. This will ensure your world is accessible to other players on your local network.
| Parameter | Value for Host | Value for the Client |
|---|---|---|
| IP address | 192.168.1.1 (example) | 192.168.1.2 (example) |
| Subnet mask | 255.255.255.0 | 255.255.255.0 |
| Port of the game | 25565 | 25565 |
| Network type | Private | Private |
Launching the game and connecting directly via IP
Once your network and firewall are configured, you can play the game. Launch Minecraft on the computer that will be the host (server). Create a new world or load an existing one. In the pause menu, press the button. Open to the web (Open to LAN). In the window that appears, select the game mode and whether to use cheats, then confirm the action.
A message will appear in the game chat indicating that the server is running on the port (for example, Local game hosted on port 54321). Note the port number—it may differ from the standard 25565. This is the port you'll need to specify when connecting. On the second computer, launch Minecraft, go to "Network Play," and click "Direct Connection."
In the address field, enter the IP address of the host that you found out earlier (via the command ipconfig (in the command line or in the network settings), adding the port shown in the chat separated by a colon. The format should be: 192.168.1.1:54321If all the settings are correct, you will find yourself in your friend's world.
Alternative solutions: Hamachi and Radmin VPN
In cases where standard methods for setting up a local network prove too complicated or are blocked by the provider/administrator, programs for creating virtual private networks (VPN) come to the rescue. Hamachi And Radmin VPN — the most popular tools that allow you to emulate a local network over the Internet, even if players do not have a public IP address.
The principle is simple: all participants install the program, register, and join a shared network using the same username and password. The software creates a virtual network adapter, allowing computers to "see" each other as if they were connected by cable. After this, connecting to Minecraft is no different from a regular LAN game.
The advantage of this method is that it bypasses most restrictions found in home routers and doesn't require complex port configuration. However, it's important to keep in mind that traffic goes through the software developers' servers, which can add a slight latency (ping) compared to a direct connection. This is usually sufficient for comfortable Minecraft play.
⚠️ Note: The Hamachi and Radmin VPN interfaces are subject to update. If you can't find the "Create Network" or "Connect" buttons, check the latest help on the developer's official website, as the layout of the controls may change.
Frequently Asked Questions (FAQ)
Is it possible to play online without a router if I only have one computer?
No, playing online (LAN) requires at least two devices. If you only have one PC, you can run the game in single-player mode or use mods that simulate the presence of other players (bots), but a full-fledged multiplayer session will not be possible.
Why can't the second computer see the server, even though the IP is entered correctly?
The most likely cause is that Windows Firewall is blocking the connection. Check that Java or Minecraft are allowed in the firewall rules. Also, make sure both computers are on the same subnet (the first three digits of the IP address should match).
Do I need internet access to play on a local network without Wi-Fi?
Internet access is not required to play on a local area network (LAN). However, you may need it to log in to the Minecraft launcher before launching the game if you're using a licensed version.
What cable is needed to connect two computers directly?
A standard twisted pair network cable (Ethernet/RJ-45) will do. Modern network cards automatically detect the cable type, so there's no need to look for a special crossover cable; any working patch cord will do.