Log inSign up

Set up a private TeamSpeak 3 voice server

Download the Linux amd64 archive from teamspeak.com, extract it into /opt/teamspeak as a teamspeak user, and start ts3server license_accepted=1 from a systemd unit. The first start prints a serveradmin password and a privilege key: save both, open UDP 9987 and TCP 30033, and connect with the TeamSpeak client.

Topic: Game and voice servers · Tested on: Ubuntu 24.04 and 22.04, Debian 12 and 13 · Updated 2026-12-03

How much server does TeamSpeak need?

Very little. Voice servers relay small audio packets, so CPU and memory stay low even with a full channel. The smallest High Frequency plan, F1-1 (1 vCPU, 1 GB RAM, 32 GB NVMe), runs a TeamSpeak server for a gaming community without effort, and it can share a box with a game server: a TeamSpeak instance next to a Minecraft world on F2-4 is a common pairing. What matters more is location, because voice delay adds to game ping. Choose a city near your members, as described on the game servers page.

This guide covers the TeamSpeak 3 server line. Check the downloads page for the current 3.x release number before you start; the examples use 3.13.7.

How do I prepare a user and download the server?

Create an unprivileged account that owns the server files, then fetch and unpack the archive. The download is a tar.bz2, so bzip2 must be installed.

sudo apt update && sudo apt install -y wget 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.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
sha256sum teamspeak3-server_linux_amd64-3.13.7.tar.bz2
sudo tar -xjf teamspeak3-server_linux_amd64-3.13.7.tar.bz2 -C /opt/teamspeak --strip-components=1
sudo chown -R teamspeak: /opt/teamspeak
ls /opt/teamspeak

Compare the checksum with the one on the official download page. The folder should now hold ts3server, ts3server_startscript.sh, the bundled libraries and a LICENSE file. Read that license: you accept it in the next step.

How do I accept the license and start the server?

TeamSpeak refuses to start until the license is accepted, either with an empty marker file or a start parameter. The marker file keeps the systemd command short:

sudo -u teamspeak touch /opt/teamspeak/.ts3server_license_accepted

Now create the service. Running the binary directly, instead of through the bundled start script, lets systemd track the real process and restart it after a crash.

sudo tee /etc/systemd/system/teamspeak.service <<EOF
[Unit]
Description=TeamSpeak 3 server
After=network-online.target
Wants=network-online.target

[Service]
User=teamspeak
WorkingDirectory=/opt/teamspeak
Environment=LD_LIBRARY_PATH=/opt/teamspeak
ExecStart=/opt/teamspeak/ts3server license_accepted=1
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable --now teamspeak
systemctl status teamspeak --no-pager

Where are the admin password and privilege key?

On its very first start the server creates the SQLite database, the default virtual server and two secrets, and prints them once. Read them from the journal right away:

sudo journalctl -u teamspeak --no-pager | grep -iE "password|token"

You will see a loginname= "serveradmin", password= "..." line for the ServerQuery admin account and a token= line holding the privilege key. Store both in a password manager. Then open the TeamSpeak client, connect to 198.51.100.24, and paste the token when the client asks for a privilege key (or use Permissions, Use Privilege Key). Your user joins the Server Admin group, and the key is used up.

The same values also appear in the log files under /opt/teamspeak/logs. Once you have saved them, nothing else needs them.

Which ports should the firewall allow?

Open the voice port and the file transfer port, and leave the query interfaces closed:

  • UDP 9987: voice, needed by every client.
  • TCP 30033: file transfer for avatars, icons and channel files.
  • TCP 10011, 10022, 10080: raw, SSH and HTTP ServerQuery. Keep them closed to the public; reach them through an SSH tunnel when needed.
sudo ufw allow 9987/udp
sudo ufw allow 30033/tcp
sudo ufw status
sudo ss -ulnp | grep 9987
sudo ss -tlnp | grep -E "30033|10011|10022"

Since query ports stay blocked at the firewall, scanners that hammer them never reach the server. To use a query tool from your desk, tunnel it: ssh -L 10011:127.0.0.1:10011 deploy@198.51.100.24. The firewall tutorial explains default deny rules in more depth.

How do I give it a friendly address?

Create an A record such as ts.example.net pointing at the server, and an AAAA record for 2001:db8:4f2a::24 if your members use IPv6. The DNS records tutorial shows how. TeamSpeak clients also look up an SRV record, so you can hide a non default port behind a plain name:

_ts3._udp.example.net.  3600  IN  SRV  0 5 9987 ts.example.net.

With that record, members type example.net in the client and land on the right server and port.

How do I set up channels, groups and security?

Most administration happens in the client once you hold the Server Admin group. Useful first steps:

  • Set a server password under Edit Virtual Server if the server is only for your group.
  • Raise the security level for new identities so throwaway accounts cannot flood in.
  • Create permanent channels and a Guest group with limited rights.
  • Add trusted members to a moderator group instead of handing out admin keys.

New privilege keys can be generated in the client under Permissions, Privilege Keys whenever a new admin joins. The free license without a key allows one virtual server with a limited slot count; the licensing FAQ on teamspeak.com lists the current terms.

How do I back up and update TeamSpeak?

Back up the database and the generated files with the service stopped for a moment, then update by unpacking the new archive over the program files:

sudo systemctl stop teamspeak
sudo tar -czf /root/teamspeak-$(date +%F).tar.gz -C /opt/teamspeak ts3server.sqlitedb files
cd /tmp && wget https://files.teamspeak-services.com/releases/server/NEW_VERSION/teamspeak3-server_linux_amd64-NEW_VERSION.tar.bz2
sudo tar -xjf teamspeak3-server_linux_amd64-NEW_VERSION.tar.bz2 -C /opt/teamspeak --strip-components=1
sudo chown -R teamspeak: /opt/teamspeak
sudo systemctl start teamspeak

The database is upgraded automatically on the next start. Keep a few archives off the server, or enable the console daily backups add-on as an extra layer (daily backups).

What if clients cannot connect?

Check the service with systemctl status teamspeak and the journal for binding errors. If the server runs but clients time out, UDP 9987 is usually blocked; test with sudo ss -ulnp | grep 9987 on the server and review sudo ufw status. Errors about missing libraries mean LD_LIBRARY_PATH is not set in the unit. A server that refuses to start and mentions the license has lost its marker file, often after files were copied as root.

Plans that fit this guide

Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.

All prices
PlanFits becauseSizeMonthlyOrder from
F1-1a voice server for a gaming group1 vCPU, 1 GB RAM, 32 GB NVMe$3.60/mo$43.20 for 12 months
F2-4voice next to a game server2 vCPU, 4 GB RAM, 128 GB NVMe$14.40/mo$43.20 for 3 months

Questions about TeamSpeak 3 server

What if I lose the privilege key?

Log in to ServerQuery through an SSH tunnel with the serveradmin password and create a new key with privilegekeyadd, or add your identity to the admin group from there.

Can TeamSpeak share a server with a game?

Yes. Its footprint is small, so it sits comfortably beside a Minecraft or Factorio server; give each its own user and ports.

Does TeamSpeak use much monthly transfer?

Voice uses small amounts per speaker; even an active group stays well inside the transfer of the smallest plans.

Is MariaDB required?

No. The default SQLite database is fine for community servers. MariaDB support exists for larger setups but adds maintenance.

Is there an open source alternative?

Mumble is a free voice server with low latency; see the Mumble guide.