p>Minecraft is a very popular multiplayer game where players can connect to a Minecraft world hosted within one of the player's running game, or connect to a standalone server hosting an entire world.

/p>

p>Without Tailscale setting up a Minecraft server that is accessible from outside the home means either:

/p>

p>- Paying third-party hosting or opening ports in firewalls, which could allow access to any rando that is on the Internet

/p>

p>With Tailscale, you can share it with anyone, anywhere, and just the people you want.

/p>

p>In this guide, we'll show how to set up an Minecraft bedrock_server and connect to the server from anywhere using Tailscale.

/p>

p>Prerequisites

/p>

p>You will need an Linux server. These instructions assume that a Linux server or VM is running in the home, behind firewall. Tailscale allows clients to connect to computers from wherever they are and you don't have to worry about the accessibility of the machine. It's just a matter of being connected to the internet. If you sign up for a VM hosted on a cloud provider's server be sure that the firewall blocks all access.

/p>

p>This guide assumes that you are using Ubuntu/Debian. However, the changes for other Linux distributions will be minimal.

/p>

p>Step 1: Install Linux's bedrock_server

/p>

p>The bedrock_server is compatible with Windows and Linux. We'll cover Linux in this guide.

/p>

p>We recommend creating an account on the Minecraft server user and installing some packages later.

/p>

p>Download the current version of the Linux bedrock_server binary from https://www.minecraft.net/en-us/download/server/bedrock. This is the best method to do it as the minecraft user just created:

/p>

p>Minecraft bedrock_server is updated relatively frequently. When the Minecraft game app is updated it requires the new version of the server. So we'll prepare for future updates by storing the server files in the git directory:

/p>

p>Every subsequent upgrade to bedrock_server can be saved to the git repository. Be certain to be aware of permissions.json, and server.properties because any future update to the bedrock_server update will erase any modifications you have created.

/p>

p>systemd

/p>

p>systemd lets you start services automatically upon booting. We'll create a few files to have bedrock_server start up automatically.

/p>

p>/etc/systemd/system/minecraft.service

/p>

p>/opt/minecraft/start.sh

/p>

p>/opt/minecraft/stop.sh

/p>

p>Also make the shell scripts executable: chmod +x /opt/minecraft/start.sh /opt/minecraft/stop.sh

/p>

p>As root you should now start Minecraft using systemctl and voila, you are running a Minecraft bedrock edition server.

/p>

p>As a minecraft user you can connect to tmux to view the server console:

/p>

p>To disconnect from tmux and to let bedrock_server run, press Ctrl-B then "d" to detach.

/p>

p>Step 2: Install Tailscale on the server

/p>

p>Tailscale is available for essentially every modern Linux distribution, although the installation instructions may vary slightly.

/p>

p>Download Tailscale

/p>

p>Once installed and active on tailnet after which the Minecraft server bedrock_server is accessible from any Tailscale client.

/p>

p>Step 3: Play Minecraft

/p>

p>You will need to install the Tailscale client, which is available on the App Store for iOS and the Play Store Android. You'll also need the Minecraft app.

/p>

p>In the Minecraft application, click Play, and then select the Servers tab. The list will include some third-party servers that are promoted however scroll to the bottom to locate a button to add the server.

/p>

p>Include the details of your server including the Tailscale IP Address (the 100.x.y.z address) to the description. These can be viewed in the Tailscale app or in the admin console.

/p>

p>Before you are able to connect to the server, you will be asked to sign into XBox Live. https://886.lv/ Live.com accounts can be created for free and don't need an XBox. Tailscale never gets the live.com account, Minecraft simply requires it before connecting.

/p>


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2022-09-15 (木) 08:02:17 (601d)