01
Before you start
You need a recent Linux VPS with a sudo user: Ubuntu 22.04 or 24.04, or Debian 12 or 13. A voice server is light; what matters:
- The licence: without a licence key, TeamSpeak 3 allows one virtual server and 32 slots, free of charge. Beyond that, or for several virtual servers, you need a licence bought from the publisher. The old free non-profit licence (NPL) is no longer issued.
- The network: voice travels over UDP, in small regular packets. Low latency from your users' homes matters more than processor power.
- Container or virtual machine: the server needs no kernel module. It runs in a container VPS (LXC) as well as in a virtual machine (see KVM or container VPS).
Do the basic security setup first (SSH key, firewall, automatic updates): the guide securing a Linux VPS gives the order to follow. If the TeamSpeak goes with a game server, both can share the same VPS: see hosting several game servers.
02
Install the TeamSpeak 3 server
Install the download and decompression tools, then create a dedicated user without admin rights:
sudo apt update
sudo apt install -y wget bzip2
sudo useradd -r -m -d /opt/teamspeak -s /usr/sbin/nologin teamspeak
Download the 64-bit Linux archive and extract it into /opt/teamspeak. Check the latest version number on the TeamSpeak download page before running the commands:
TS_VER=3.13.9
wget -P /tmp https://files.teamspeak-services.com/releases/server/$TS_VER/teamspeak3-server_linux_amd64-$TS_VER.tar.bz2
sudo -u teamspeak tar xjf /tmp/teamspeak3-server_linux_amd64-$TS_VER.tar.bz2 -C /opt/teamspeak --strip-components=1
The server refuses to start until its licence is accepted. Read it (the LICENSE file in the folder), then accept it by creating an empty file:
sudo -u teamspeak touch /opt/teamspeak/.ts3server_license_accepted
Finally, create the service /etc/systemd/system/teamspeak.service, so the server starts with the VPS and restarts after a crash:
[Unit]
Description=Serveur TeamSpeak 3
Wants=network-online.target
After=network-online.target
[Service]
User=teamspeak
WorkingDirectory=/opt/teamspeak
ExecStart=/opt/teamspeak/ts3server_minimal_runscript.sh
Restart=on-failure
RestartSec=15
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now teamspeak
sudo systemctl status teamspeak
03
Get the admin key and configure the server
On the very first start, the server creates its database and shows two pieces of information to keep safe: the password of the serveradmin account (for ServerQuery) and a privilege key (token) that grants the Server Admin group. Find them in the log:
sudo journalctl -u teamspeak --no-pager | grep -iE "token|password"
sudo sh -c 'grep -i token /opt/teamspeak/logs/*.log'
Then connect with the TeamSpeak client to the VPS IP address. The client offers to enter the key on first connection; otherwise, use the Permissions menu, then Use Privilege Key. The key works only once: you are now an administrator.
The server name, access password, welcome message and number of slots are then set from the client, by right-clicking the server name and choosing Edit Virtual Server. Machine settings (ports, listening addresses) are launch parameters, such as default_voice_port, filetransfer_port or query_port; they can also be stored in a ts3server.ini file loaded with the inifile=ts3server.ini parameter.
Lost the key? With the serveradmin password, open a ServerQuery session over SSH from the VPS (the password is asked when connecting) and create a new key:
ssh serveradmin@127.0.0.1 -p 10022
use 1
servergrouplist
tokenadd tokentype=0 tokenid1=6 tokenid2=0
quit
tokenid1 is the number of the Server Admin group, 6 on a fresh server: check it in the output of servergrouplist.
04
Ports and firewall
Users only need two ports:
sudo ufw allow 9987/udp
sudo ufw allow 30033/tcp
- 9987/UDP: voice. This is the port of the first virtual server; if you change it, users add it to the address (
address:port).
- 30033/TCP: file transfer (avatars, icons, files dropped in channels).
Do not open the ServerQuery ports (10011 in plain text, 10022 over SSH, and those of the WebQuery interface): they give full control of the server, and port 10011 sends the password in clear text. Manage them from the VPS itself, or through an SSH tunnel. The server must also be able to reach TeamSpeak's licensing services outbound (HTTPS, TCP port 443); with ufw, outgoing connections are allowed by default. Ports for each game are detailed in the guide game server ports.
05
Backups and updates
All the server's state lives in /opt/teamspeak: the ts3server.sqlitedb database (channels, groups, permissions, keys), the files folder (files and icons) and the settings. Stop the server for a consistent copy:
sudo systemctl stop teamspeak
sudo tar czf /root/teamspeak-$(date +%F).tar.gz -C /opt teamspeak
sudo systemctl start teamspeak
Then copy the archive off the VPS (scp, rsync or external storage). To update the server, take a backup first, then extract the new version over the old one: the database and your files are kept, and the server upgrades its database on start.
sudo systemctl stop teamspeak
TS_VER=3.13.9
wget -P /tmp https://files.teamspeak-services.com/releases/server/$TS_VER/teamspeak3-server_linux_amd64-$TS_VER.tar.bz2
sudo -u teamspeak tar xjf /tmp/teamspeak3-server_linux_amd64-$TS_VER.tar.bz2 -C /opt/teamspeak --strip-components=1
sudo systemctl start teamspeak
Replace 3.13.9 with the new version number. Once the database is upgraded, going back to the old version is not supported: keep the backup until everything is checked. Do not put updates off: version 3.13.8 fixed security flaws.
06
The alternatives: TeamSpeak 6 and Mumble
TeamSpeak 6 has its own server, still in beta at the time of writing. It ships with a 32-slot beta licence, renewed every two months during the beta, and TeamSpeak 3 licences do not apply to it. It uses the same ports (9987/UDP and 30033/TCP) and the publisher provides a Docker image; Docker installs with the guide installing Docker on a VPS:
docker run -d --name teamspeak-server --restart unless-stopped \
-p 9987:9987/udp -p 30033:30033 \
-e TSSERVER_LICENSE_ACCEPTED=accept \
-v teamspeak-data:/var/tsserver/ \
teamspeaksystems/teamspeak6-server:latest
docker logs teamspeak-server
The admin key appears in the output of docker logs. Do not run TeamSpeak 3 and TeamSpeak 6 on the same ports of the same VPS.
Mumble is free software, with no licence and no slot limit, and its server is in the Debian and Ubuntu repositories:
sudo apt install -y mumble-server
sudo dpkg-reconfigure mumble-server
sudo ufw allow 64738/tcp
sudo ufw allow 64738/udp
dpkg-reconfigure sets the password of the SuperUser admin account. Settings (access password serverpassword, number of slots users, welcome message welcometext) are in /etc/mumble-server.ini or /etc/mumble/mumble-server.ini depending on the version: ls /etc/mumble* will tell you. Apply them with sudo systemctl restart mumble-server. Mumble listens on port 64738, over TCP and UDP.
07
On a CloudFive VPS, and when it is not the right choice
CloudFive has no turnkey TeamSpeak offer: our game offers cover other titles (the list is on the offers page). For a voice server, the method in this guide on a VPS is the right path:
- the Intel VPS, on a Xeon E5-2687W v4 with DDR4 ECC memory, is more than enough for a TeamSpeak or Mumble on its own;
- the Ryzen VPS, on a Ryzen 9 9950X with DDR5 memory and NVMe storage, suits a voice server sharing the machine with a game server;
- both are Linux containers (LXC) with root access and nesting enabled (Docker works, for TeamSpeak 6 for instance), a dedicated IPv4 address, a 1 Gb/s port and basic DDoS protection included; Premium Protection, a paid option, adds the game-specific filter and advanced settings (traffic caps, countries, per-port access). See protecting a game server from DDoS.
Servers are in France, monthly with no commitment, and support answers in French by ticket, on Discord and by phone, 7 days a week. Prices are on the pricing page.
It is not the right choice if:
- you do not want to manage anything: a VPS means keeping the system and the server up to date, and we do not offer ready-made TeamSpeak hosting;
- your community already lives on Discord and does not need its own voice server;
- you prefer to run the server on Windows: the TeamSpeak server also exists for Windows and installs on the Windows VPS;
- you need more than 32 slots or several virtual servers without buying a licence: Mumble has no such limit;
- your users are far from France: latency can be heard in the voice.
08
Frequently asked questions
How do I set up a free TeamSpeak server on a Linux VPS?
Download the Linux archive of the TeamSpeak 3 server from the publisher's site, extract it into a folder owned by a dedicated user, accept the licence by creating the .ts3server_license_accepted file, run ts3server_minimal_runscript.sh with a systemd service, then open port 9987 UDP and 30033 TCP. Without a licence, use is free up to 32 slots on one virtual server.
Which ports do I open for a TeamSpeak 3 server?
Port 9987 UDP for voice and port 30033 TCP for file transfer. Keep the ServerQuery ports (10011, 10022 and the WebQuery ones) closed: they give full control of the server.
Where do I find the TeamSpeak admin privilege key?
It is shown only once, on the server's first start, together with the serveradmin password: search for "token" in the log (journalctl -u teamspeak or the logs folder). If it is lost, log in to ServerQuery with the serveradmin account and create a new key with the tokenadd command.
How many slots does a TeamSpeak server have without a licence?
Without a licence key, the TeamSpeak 3 server accepts 32 slots on a single virtual server, free of charge. Beyond that you need to buy a licence from the publisher. The TeamSpeak 6 server, in beta, ships with a 32-slot beta licence renewed every two months.
TeamSpeak or Mumble: which voice server should I choose?
TeamSpeak is the most widespread among gamers but limited to 32 slots without a licence. Mumble is free software, with no slot limit or licence, installs with the mumble-server package on Debian and Ubuntu and uses port 64738 over TCP and UDP. Both use very few resources.
Does CloudFive offer TeamSpeak hosting?
No, there is no turnkey TeamSpeak offer. The server installs on a CloudFive Linux VPS in France, Intel or Ryzen, with root access, dedicated IPv4 and basic DDoS protection included, or on the Windows VPS for the Windows version of the server.