---
title: "TeamSpeak server setup on Linux and Windows, step by step · CloudSat"
description: "Set up a TeamSpeak 3 server on Linux or Windows: download, license, first-start keys, a service that survives reboots, firewall rules, a domain and updates."
url: https://cloudsat.io/learn/teamspeak-server-setup-on-linux-and-windows
updated: 2026-11-18T12:00:00Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

# TeamSpeak server setup on Linux and Windows, step by step

Set up a TeamSpeak 3 server on Linux or Windows: download, license, first-start keys, a service that survives reboots, firewall rules, a domain and updates.

CloudSat team November 18, 2026 7 min read

This guide installs the TeamSpeak 3 server from the official download and takes it all the way to a server your community can reach by name: first start, admin rights, a service that starts at boot, firewall rules, a domain, backups and updates. It covers Linux and Windows side by side. Whether to run your own server or rent slots, and what the free license allows, is covered in our guide to [TeamSpeak hosting](https://cloudsat.io/learn/teamspeak-hosting-slots-or-your-own-server); this one assumes you have decided to run it yourself.

## Before you start

- **Version.** The current TeamSpeak 3 server is 3.13.9, published for Linux, Windows, macOS and FreeBSD. TeamSpeak 6 server is still in beta (6.0.0-beta14 arrived on November 17, 2026), so TeamSpeak 3 remains the version to run for a community that depends on it.
- **Ports.** Players need UDP 9987 for voice and TCP 30033 for file transfers, avatars and icons. The ServerQuery admin ports, 10011, 10022 and 10080, should never be open to the internet.
- **Resources.** TeamSpeak needs very little memory and CPU. It fits next to a game server on the same machine.
- **A safe place for secrets.** The first start prints a ServerQuery password that TeamSpeak shows only once, plus a one-time privilege key for admin rights. Have a password manager open.

## Linux setup

### 1. Create a user and unpack the server

```bash
sudo apt install -y bzip2
sudo useradd --system --create-home --home-dir /opt/teamspeak --shell /usr/sbin/nologin teamspeak
cd /tmp
wget https://files.teamspeak-services.com/releases/server/3.13.9/teamspeak3-server_linux_amd64-3.13.9.tar.bz2
sudo tar -xjf teamspeak3-server_linux_amd64-3.13.9.tar.bz2 -C /opt/teamspeak --strip-components=1
sudo chown -R teamspeak:teamspeak /opt/teamspeak
```

The server runs as its own unprivileged user, so a flaw in it cannot reach the rest of the system.

### 2. Accept the license and start once

Read the `LICENSE` file in `/opt/teamspeak`. The server will not start until you accept it, which you can record with a file in its folder. Then run it once in the foreground:

```bash
sudo -u teamspeak touch /opt/teamspeak/.ts3server_license_accepted
sudo -u teamspeak /opt/teamspeak/ts3server_minimal_runscript.sh
```

The console prints a block with `loginname= "serveradmin", password= "..."` and a line beginning with `token=`. Save both. The token is also written to the log in `/opt/teamspeak/logs`, but the ServerQuery password appears only in this output. Stop the server with **Ctrl+C**.

### 3. Run it as a service

The service below also restricts ServerQuery to encrypted SSH on the loopback address, so the admin interface exists only on the server itself:

```ini
# /etc/systemd/system/teamspeak.service
[Unit]
Description=TeamSpeak 3 server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=teamspeak
WorkingDirectory=/opt/teamspeak
ExecStart=/opt/teamspeak/ts3server_minimal_runscript.sh query_protocols=ssh query_ssh_ip=127.0.0.1
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
```

```bash
sudo systemctl daemon-reload
sudo systemctl enable --now teamspeak
systemctl status teamspeak
```

The minimal run script replaces itself with the server process, which lets systemd track and restart it properly.

### 4. Open the firewall

```bash
# Ubuntu and Debian with ufw
sudo ufw allow 9987/udp
sudo ufw allow 30033/tcp

# Rocky Linux and AlmaLinux with firewalld
sudo firewall-cmd --permanent --add-port=9987/udp --add-port=30033/tcp
sudo firewall-cmd --reload
```

## Windows setup

### 1. Download and extract

In PowerShell, as an administrator:

```powershell
Invoke-WebRequest -Uri "https://files.teamspeak-services.com/releases/server/3.13.9/teamspeak3-server_win64-3.13.9.zip" -OutFile "$env:TEMP\ts3.zip"
Expand-Archive -Path "$env:TEMP\ts3.zip" -DestinationPath "C:\"
Rename-Item -Path "C:\teamspeak3-server_win64" -NewName "TeamSpeak"
```

### 2. Start once and save the credentials

Run `C:\TeamSpeak\ts3server.exe`. On the first start, a dialog asks you to accept the license, and a second dialog shows the ServerQuery login and the privilege key. Copy both before closing it. Then stop the server so the service can take over:

```powershell
Stop-Process -Name ts3server
```

### 3. Firewall rules

```powershell
New-NetFirewallRule -DisplayName "TeamSpeak voice" -Direction Inbound -Protocol UDP -LocalPort 9987 -Action Allow
New-NetFirewallRule -DisplayName "TeamSpeak file transfer" -Direction Inbound -Protocol TCP -LocalPort 30033 -Action Allow
```

### 4. Start it at boot

The TeamSpeak 3 server for Windows does not install itself as a service. A scheduled task that runs at startup does the job:

```powershell
$action   = New-ScheduledTaskAction -Execute "C:\TeamSpeak\ts3server.exe" -Argument "license_accepted=1 query_protocols=ssh query_ssh_ip=127.0.0.1" -WorkingDirectory "C:\TeamSpeak"
$trigger  = New-ScheduledTaskTrigger -AtStartup
$settings = New-ScheduledTaskSettingsSet -ExecutionTimeLimit ([TimeSpan]::Zero) -RestartCount 3 -RestartInterval (New-TimeSpan -Minutes 1)
Register-ScheduledTask -TaskName "TeamSpeak 3 Server" -Action $action -Trigger $trigger -Settings $settings -User "NT AUTHORITY\SYSTEM" -RunLevel Highest
Start-ScheduledTask -TaskName "TeamSpeak 3 Server"
```

The `ExecutionTimeLimit` line matters: by default, Task Scheduler stops a task after three days, which would silently take your voice server down every few days.

If you would rather not do any of this by hand, CloudSat's [TeamSpeak one-click app](https://cloudsat.io/apps/deploy-teamspeak-server) installs the server on Linux at deploy time, while the Windows route needs a [Windows VPS](https://cloudsat.io/windows-vps-hosting) from $2.78/mo.

## Claim admin rights

Open the TeamSpeak client, connect to the server's IP address, and paste the privilege key when the client asks for it. If it does not ask, use **Permissions**, then **Use Privilege Key**. Your identity joins the Server Admin group, and the key is spent; each key works once.

Do not hand the admin key around. Create a moderator server group with the permissions moderators need, and add people to it. If you need another admin key later, create one from ServerQuery on the server itself:

```text
ssh -p 10022 serveradmin@127.0.0.1
use 1
privilegekeyadd tokentype=0 tokenid1=6 tokenid2=0
```

`tokenid1=6` is the default Server Admin group. From your own computer, reach port 10022 through an SSH tunnel to the server instead of opening it in the firewall.

## Give it a name

A domain is easier to share than an IP address and survives a move to another server. Point an A record at the server, and add an SRV record so the client finds the voice port by itself:

```text
ts.example.com.          3600 IN A    203.0.113.10
_ts3._udp.example.com.   3600 IN SRV  0 5 9987 ts.example.com.
```

Members then connect to `example.com`. Without the SRV record, `ts.example.com` works too, as long as the server uses the default port 9987.

## Backups and updates

**Backups.** Everything lives in the server folder: the database `ts3server.sqlitedb`, the `files` folder with uploads and icons, the query IP lists and any license file. The simplest consistent backup is to stop the server for a minute at night, archive the folder and start it again. Keep a copy off the machine.

**Updates.** Read the changelog, stop the server, back up the folder, then extract the new release over the existing files. On Linux, the same `tar` command with `--strip-components=1` does it; restore ownership with `chown` and start the service again. On Windows, stop the task, copy the new files over the old ones and start it. The server upgrades its database on the first start of a new version, which is one more reason to back up first.

## When something does not work

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| Clients time out on connect | UDP 9987 blocked | Check the firewall, and that `ss -ulnp` lists port 9987 |
| Avatars, icons or uploads fail | TCP 30033 blocked | Open 30033/tcp |
| Server exits at start, no license message | License not accepted | Add the file or `license_accepted=1` |
| "instance check error" on Linux | `/dev/shm` is not mounted | Mount tmpfs on `/dev/shm`, as the quickstart guide shows |
| Domain does not resolve to the server | DNS record or SRV name wrong | Check `_ts3._udp` and the target host |

Voice servers attract the same floods as game servers, so keep the host's filtering and a tight firewall in place; our guide to [DDoS protection for game servers](https://cloudsat.io/learn/ddos-protection-for-minecraft-and-fivem-servers) explains the layers.

## FAQ

### Can TeamSpeak run on the same machine as a game server?

Yes. It uses little memory and CPU, and its ports do not collide with Minecraft, FiveM or ARK. Give each its own service and its own user.

### I lost the ServerQuery password. Can I recover it?

No. TeamSpeak's quickstart guide states that the password is shown once, and the only documented way to get a new one resets the database, losing settings and users. Store it safely on the first start.

### Should I install TeamSpeak 6 instead?

For a test, yes; for your community's main server, not yet. The TeamSpeak 6 server is still a beta with frequent releases, its default license is refreshed through new beta builds, and TeamSpeak 3 licenses do not carry over to it.

### Where are the logs?

In the `logs` folder inside the server directory, on both Linux and Windows. The first log also contains the original privilege key line.

**Run it on CloudSat.** Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. [See plans](https://cloudsat.io/plans) or [deploy a server](https://dash.cloudsat.io/console/deploy).

## Keep reading

[All guides in Self-hosting](https://cloudsat.io/learn/topic/self-hosting)

- [TeamSpeak hosting: rented slots or your own server?](https://cloudsat.io/learn/teamspeak-hosting-slots-or-your-own-server): Gaming TeamSpeak hosting: rented slots or your own server? 6 min read
- [Game server security: the threats that hit community servers](https://cloudsat.io/learn/game-server-security-checklist): Security Game server security: the threats that hit community servers 6 min read
- [DDoS protection for Minecraft and FiveM servers](https://cloudsat.io/learn/ddos-protection-for-minecraft-and-fivem-servers): Security DDoS protection for Minecraft and FiveM servers 8 min read
- [Run a private Git server over SSH with nothing but Git](https://cloudsat.io/learn/bare-git-server-over-ssh): Self-hosting Run a private Git server over SSH with nothing but Git 6 min read
