Normally, Minecraft LAN games only work if players are connected to the exact same Wi-Fi network. However, by using a Virtual Private Network (VPN) tool, you can trick the game into thinking everyone is on the same local network, allowing you to play together from different locations. For standard local play, you can also check out How to Play Minecraft LAN.
Choose and Install a Virtual Private Network Tool
To connect two different networks, both the host and the players must install a virtual LAN software. Popular and free options include LogMeIn Hamachi and Tailscale. Download and install your chosen program on all computers that want to join the game session.
Create an account and sign in on each machine. Make sure everyone participating is using the exact same software version to avoid connection errors.
Create or Join a Private Virtual Network
One player needs to act as the network creator. If using Hamachi, click Create a New Network, set a network ID and password, and share those details with your friends. If using Tailscale, simply log in with the same account type or link your devices together into a shared tailnet.
Once configured, verify that all players show up as connected in the software dashboard. This means your computers are now securely linked over the internet as if they were sitting in the same room.
Open Your World to LAN in Minecraft
Launch Minecraft and load up the singleplayer world you want to share. Once inside the game, press the Esc key and click on Open to LAN.
Choose your preferred game mode and settings, then click Start LAN World. Minecraft will display a chat message showing a random port number (for Java Edition) or keep the default port open (for Bedrock Edition).
Gather the Correct IP Address and Port
If you are playing Java Edition, look at your virtual network software (like Hamachi) to find the host computer's virtual IPv4 address. Combine that IP address with the 5-digit port number shown in your Minecraft chat, separated by a colon (for example: 25.12.34.56:12345).
If you are playing Bedrock Edition, the joining players can often see the world automatically under the Friends tab, or the host can provide their virtual IPv4 address and port directly.
Connect to the Session and Play
Have your friends open Minecraft, go to the multiplayer menu, and click Direct Connection (in Java Edition) to enter the virtual IP and port combination you created. Click Join Server to enter the game.
If anyone has trouble connecting, double-check that your virtual network is active and that your firewall isn't blocking the connection. For alternative multiplayer methods, you can read How to Play Minecraft Multiplayer.
Frequently Asked Questions
Can Java and Bedrock players play together using this method?
No. Virtual LAN tools only bridge network connections; they do not cross-play between Java Edition and Bedrock Edition. All players must use the same game edition.
Do we need to pay for Hamachi or Tailscale?
Both services offer free tiers that are more than enough to host a small Minecraft session with a few friends.








