---
title: "How to Create a Minecraft Server with Friends Using Tailscale"
description: "Forget Hamachi! Use Tailscale to create a private network for your Minecraft server, allowing friends to join without port forwarding."
url: "https://www.alemasone.com/en/minecraft-server-with-friends-tailscale/"
language: "en"
published: 2024-09-27
updated: 2026-09-20
categories: ["Gaming"]
translations:
  it: "https://www.alemasone.com/it/server-minecraft-con-tailscale/"
  es: "https://www.alemasone.com/es/crear-servidor-minecraft-con-tailscale/"
  fr: "https://www.alemasone.com/fr/creer-serveur-minecraft-amis-tailscale/"
  pt: "https://www.alemasone.com/pt/criar-servidor-minecraft-com-amigos-tailscale/"
  de: "https://www.alemasone.com/de/minecraft-server-erstellen-mit-tailscale/"
---

# How to Create a Minecraft Server with Friends Using Tailscale

For a Minecraft server with friends, [Hamachi](https://vpn.net/) has had its day: today you can do the same thing with **Tailscale**, which creates a private network between your computers without opening ports on your router and without complicated configurations. The free plan covers unlimited devices for up to six people, exactly the size of a group playing together.

The problem is always the same: the server runs on one person's computer, but others are behind different routers and cannot reach it. There are three solutions (opening ports, using a tunnel, or creating a private network) and the last one is the simplest and least risky.

## Why not Hamachi

It worked for years, but today it shows its limits: the free plan is limited to **5 people per network**, including the host; the virtual network it creates can conflict with other connections; and problems with the network adapter that force you to reinstall are frequent. Additionally, the installation suggests extra programs that you'll want to remove.

[Tailscale](/en/best-self-hosted-vpn-solutions/) is based on WireGuard, configures itself automatically, and connects devices directly to each other when the network allows it.

## Setting up the server

You need a copy of **Minecraft: Java Edition** for everyone, an updated [Java](https://adoptium.net/) on the server computer (from version 26.1, you need Java 25), and a connection with at least 5 Mbps upload speed—preferably via Ethernet.

1. On the computer that will host the game, download the official **[Java server](/en/install-minecraft-mods-without-crashing/)** (`server.jar`) from the [Minecraft download page](https://www.minecraft.net/it-it/download/server) and put it in its own folder, for example "Minecraft Server" on your desktop.

2. Launch it for the first time by double-clicking or from the terminal (`java -Xmx4G -jar server.jar nogui`): it will close immediately after creating some files.

3. Open the `eula.txt` file and change `eula=false` to `eula=true`, accepting the terms of use.

4. Restart the server and wait until the line **Done** appears in the console: the world is ready.

5. Close the server, open `server.properties` with Notepad, adjust the main settings, and then restart it:

   - `gamemode`: `survival`, `creative` o `adventure`;
   - `difficulty`: `peaceful`, `easy`, `normal` o `hard`;
   - `pvp`: `true` to allow player combat, `false` for cooperative play;
   - `max-players`: how many players can join at once;
   - `white-list`: `true` to only allow people you add with `/whitelist add nome`;
   - `motd`: the message that appears in the server list.

   ![Minecraft server folder containing the server.properties file to be modified](cartella-server-minecraft-tailscale.png "server.properties is created upon the first launch of the server")

For a group of friends, consider using **[Paper](https://papermc.io/)** instead of the official server: it's the same game, but with better performance and the ability to add plugins.

![eula.txt file opened in Notepad with the line modified to eula=true](eula-modificato-notepad-windows.png "As long as this line remains 'false', the server will close immediately after starting")

## Configuring the private network

1. Create a free account on the [Tailscale website](https://tailscale.com/) (you can also use your Google, Microsoft, or GitHub account) and install the program on every computer that will participate: the server computer and your friends' computers.

2. Everyone logs in with their own account. There are two ways to connect them: **invite friends to your network** from the **Users** section of the web dashboard, or—the cleaner way—**share only the server computer**: in the **Machines** section, open the menu next to the PC and choose **Share**. This way, your friends only see that specific machine and not the rest of your devices.

3. On the computer hosting the server, take note of the address Tailscale assigned it: it starts with `100.` and you can find it in the dashboard or by clicking the program icon in the notification area.

4. In Minecraft, friends should select **Multiplayer** → **Direct Connection** and type that address followed by `:25565` (the port can be omitted as it is the default). With **MagicDNS** enabled, they can also use the computer name instead of numbers.

You don't need to touch your router, and no one needs to know their public IP.

![Tailscale console Services page showing network services and addresses starting with 100](console-tailscale-machines-server-minecraft.png "The address starting with 100 is the one you give to friends, followed by the port")

## Windows Firewall

This is where most people get stuck: the server is running, the private network works, but no one can join. Usually, it's the fault of the firewall, which blocks incoming connections to Java. When you first launch the server, Windows might ask if you want to allow Java on certain networks: check **Private** and confirm; you might not need to do anything else.

If that doesn't work, create the rule manually:

1. Search for **Windows Defender Firewall with Advanced Security** from the Start menu.

2. Select **Inbound Rules** → **New Rule**.

3. Choose **Port**, then **TCP**, and specify port `25565`.

4. Select **Allow the connection**.

5. In the profile screen, check at least **Private**. If the Tailscale network profile shows as Public, check that one too.

6. Give the rule a name, such as "Minecraft server", and save it.

> **The thirty-second test.** If no one can join even after setting up the rule, turn off your firewall for thirty seconds and have a friend try to connect. If they get in at that moment, the problem is with the rule; if they still can't get in, look elsewhere. Then turn it back on immediately. Some antivirus software also has its own firewall: check that as well.

![Wizard for creating a Windows Firewall inbound rule on port 25565](creazione-regola-firewall-minecraft-tailscale.png "The rule must be created for Inbound Rules, under TCP, on port 25565")

## If something goes wrong

**"Unable to connect to server."** Make sure the server is running and that everyone is using the **exact same version** of Minecraft, down to the last number.

![Minecraft server console showing the "Done" line indicating the world has finished loading](console-server-minecraft-tailscale.png "The server is only ready once the console has finished loading the world")

**The Tailscale address is not responding.** Make sure both devices show as connected in the dashboard. The application must be running, not just installed. From a terminal, `tailscale ping 100.x.y.z` tells you if the other computer is responding.

**It works for some but not others.** Those who can't join are likely not on the same network or haven't accepted the sharing request: invites must be accepted.

**Slow or stuttering connection.** Tailscale tries to establish a direct connection between you; if it fails, traffic is routed through a relay server (DERP), which increases latency. `tailscale status` or the dashboard will tell you what type of connection you have.

## Become a server administrator

To change game modes, teleport, or kick someone, you need operator permissions. In the server console, type `op` followed by your Minecraft username, for example `op Marco`, and press Enter. From then on, you can use slash commands, like `/gamemode creative`, even from inside the game.

![Minecraft server console with the op command to grant administrator permissions](console-comando-op-minecraft.png "The op command is typed in the console, without the slash")

## Alternatives

**Port forwarding on your router** is the classic method: you forward port 25565 to the server computer. It works well, but it exposes the server to the internet, so you need to be careful with security and have a reachable public IP, which not all home connections provide.

**A tunneling service** like [playit.gg exposes the server via a public address](/en/host-game-servers-without-port-forwarding/) provided by the service, without touching your router and without requiring your friends to install anything. It's convenient, but it adds an intermediary and makes you dependent on them.

**Hosting** solves everything: the server stays online even when your computer is turned off, which is the main limitation of any home-based solution. There are free services like [Aternos](/en/create-free-modded-minecraft-server-aternos/), which include queues and automatic shutdowns, as well as paid services for just a few euros per month.

Minecraft's **LAN mode**, combined with a private network, works fine for occasional games without a dedicated server: open your world to the local network from the pause menu, and others can connect using the Tailscale address and the port shown in your chat. However, the world only exists as long as you are playing.

## FAQ

### Is Tailscale free?

The personal plan is free and includes unlimited devices for up to six users for non-commercial use. For a group of friends playing together, it's more than enough, and by sharing a single computer, your friends don't even count toward your network user limit.

### Does the server stay online if I turn off my computer?

No: the world lives on the computer hosting it, so if you turn it off or close the server, no one else can join. If your group plays at different times, this is the main reason to switch to external hosting.

### How much memory does the host computer need?

For four or five players without mods, 2-4 GB for the server (the `-Xmx4G` startup parameter) is enough. With mods or many players, you'll want to go up to 6-8 GB—don't overdo it: too much memory can actually decrease performance instead of improving it.

### Is it safe to use a private network instead of opening ports?

Yes, and it is safer. With an open port on your router, the server is reachable by anyone on the internet; with a private network, only those you have invited can enter.

### Does it work with Bedrock Edition too?

The private network works with any game, but the two versions of Minecraft cannot talk to each other and use different ports. For Bedrock, you need its specific server (Bedrock Dedicated Server) and a firewall rule for port `19132` on **UDP**. On Bedrock consoles, you cannot enter addresses manually, so with Tailscale, it only works on PC and mobile.
