How to host a TeamSpeak 3 server for your community
Install a TeamSpeak 3 server, keep the privilege key safe, set up groups and channel permissions, open the right ports, and back up the database.
Running your own TeamSpeak 3 server gives your clan or community a voice space you control: your channel layout, your ranks, your rules, your ban list. The server is light on resources and quick to install, but its permission system is detailed, and a few first-day mistakes (losing the privilege key, giving guests too much power) cause most of the trouble people run into.
This guide covers installing the server, the first start, ports, the configuration file, groups and permissions, ServerQuery, backups, updates and performance. If you want to sell TeamSpeak servers rather than run one, read starting a TeamSpeak 3 hosting business.
A word on licensing
TeamSpeak is commercial software with its own license terms, and those terms limit free use. Read the current license on teamspeak.com and make sure your server fits it, especially if your community is large or connected to a business. This is general information, not legal advice; check the terms yourself or ask a professional if you are unsure.
If you would rather use open-source software, Mumble is a good alternative.
Installing the server on Linux
Download the Linux server build from the official site and unpack it into its own folder:
mkdir -p /srv/ts3 && cd /srv/ts3
tar -xjf teamspeak3-server_linux_amd64-<version>.tar.bz2 --strip-components=1
touch .ts3server_license_accepted
./ts3server_startscript.sh start
The server will not start until the license is accepted. Creating the empty .ts3server_license_accepted file is one way; passing license_accepted=1 on the command line is another. Do either only after you have read the license.
Run the server as a normal user, not root.
The first start: save these two things
On the very first start, the server prints two things you must save right away:
- The serveradmin password. This is the ServerQuery login with full control over the whole server instance.
- The privilege key (a token). The first person who uses it in the TeamSpeak client gets the Server Admin group.
Use the privilege key yourself immediately: connect with the TeamSpeak client and paste it when prompted (or later through the client's permissions menu). Store the serveradmin password in a password manager.
If you lose the key before using it, you can create a new one through ServerQuery, covered below.
Ports
TeamSpeak 3 uses several ports. The defaults:
| Port | Protocol | Used for |
|---|---|---|
| 9987 | UDP | Voice (the port players connect to) |
| 30033 | TCP | File transfers (channel files, avatars, icons) |
| 10011 | TCP | ServerQuery (raw) |
| 10022 | TCP | ServerQuery over SSH |
Players only need the voice port and the file transfer port. Keep the ServerQuery ports closed to the internet unless you have a bot or tool that needs them, and if you do, restrict them to known IP addresses. TeamSpeak keeps a ServerQuery IP allow list file next to the server for exactly that.
ts3server.ini and the database
You can generate a config file with all current settings by starting the server once with createinifile=1. The file, ts3server.ini, holds instance-level settings such as the default voice port, the file transfer port, the query port, the database plugin and log settings. Launch with inifile=ts3server.ini to use it.
By default the server stores everything in an SQLite database file, ts3server.sqlitedb, next to the binary. That one file holds your channels, groups, permissions, bans and settings. MariaDB is also supported for larger setups, but SQLite is fine for most communities.
Uploaded channel files and avatars live in the files/ folder.
Setting up channels
Plan your channel tree before you build it. A layout that works for many communities:
- Lobby where everyone lands.
- Activity channels per game, team or raid group, with sub-channels for squads.
- Private channels for staff and for teams that need quiet.
- AFK with a lower codec quality and a talk power requirement.
Set a sensible codec on each channel. TeamSpeak's Opus Voice codec suits speech; Opus Music suits channels where someone streams music. Higher quality uses more bandwidth per person.
Groups and permissions
TeamSpeak has two kinds of groups:
- Server groups apply everywhere. Defaults include Server Admin, Normal and Guest.
- Channel groups apply per channel. Defaults include Channel Admin, Operator and Guest.
Each permission has a value, and many actions compare a "power" against a "needed power". For example, a user can kick someone from the server only if their kick power is at least the target's needed kick power. That is how TeamSpeak keeps moderators from kicking admins.
A practical setup for a community:
- Keep Server Admin for the owner and one backup person.
- Create a Moderator server group, copied from Normal, and give it kick, move, ban (with limited duration if you like) and the ability to assign channel groups. Give it lower powers than Server Admin.
- Create Member for verified members with access to member channels, and keep Guest for newcomers with limited rights (for example, no channel creation).
- Use Channel Admin for team leaders in their own channels only.
Give new moderators a privilege key for the Moderator group instead of assigning them by hand; it is easier to track who joined staff and when. Use the client's permission overview to check what a user can actually do before handing out power.
ServerQuery basics
ServerQuery is a text interface for scripts, bots and recovery. Connect from the server machine:
telnet 127.0.0.1 10011
login serveradmin <password>
use sid=1
servergrouplist
tokenadd tokentype=0 tokenid1=<server group id> tokenid2=0
servergrouplist shows group IDs. tokenadd with the Server Admin group's ID creates a new privilege key, which is how you recover when the original key was lost or used by the wrong person. Use the SSH port (10022) instead of raw query when you connect from outside the machine.
Moderation
- Write rules in the server welcome message and in the lobby channel description.
- Use talk power in busy channels so only certain people can speak during events.
- Use timed bans for most cases and permanent bans for repeat offenders. TeamSpeak lets you ban by nickname, IP or unique identity.
- Log moderator actions. The server log records kicks and bans. Point staff there when decisions are questioned.
Backups
Everything that matters fits in a few files:
ts3server.sqlitedb(the database)- the
files/folder ts3server.iniand any allow list files- a license key file, if you have one
For a clean copy, stop the server before copying the database. You can also create a snapshot of a virtual server through ServerQuery with serversnapshotcreate, which captures channels, groups and permissions as text you can deploy again. Back up before every update and on a schedule, and keep one copy on another machine.
Updates
To update, back up, stop the server, unpack the new version over the old binaries (keeping your database, files/, ini and license files), and start it again. Read the startup log; a newer server may update the database on first start, which is why the backup comes first.
Performance
TeamSpeak needs very little CPU, memory or disk. Voice quality depends mostly on:
- Network stability. Jitter and packet loss are what people hear as robotic or cutting voice.
- Codec settings. Higher quality uses more bandwidth per speaker.
- Distance. Players far from the server notice more latency.
If voice breaks up, check the network first, then lower codec quality on the busiest channels.
Running it through a branded panel
If you want staff to manage the server from a web panel, you can run it through a panel with your community's name using Enzonic for Resellers. Panel-only mode serves only sign-in and the panel, for communities that do not sell anything.
With Enzonic for Resellers, TeamSpeak 3 runs on Enzonic nodes in Europe, North America and Asia and on your own Pterodactyl or Pelican Wings nodes, so you can sell it without running any hardware.
You can also connect your own machine running Pterodactyl Wings or Pelican Wings, as explained in bringing your own Wings nodes. You get a live console where the first-start key and password appear, a file manager and SFTP, scheduled backups of the database, network ports for voice and file transfers, and subusers with two-factor sign-in. For what each tool does, see game panel features customers expect.
Frequently asked questions
I lost my TeamSpeak privilege key. What now?
Log in to ServerQuery with the serveradmin password, select your virtual server, find the Server Admin group ID with servergrouplist, and create a new key with tokenadd. If you also lost the serveradmin password, the server can be started with a parameter to set a new one; check the server documentation.
Which ports does a TeamSpeak 3 server need?
Players need UDP 9987 for voice and TCP 30033 for file transfers. ServerQuery uses TCP 10011 (raw) and 10022 (SSH); keep those closed or restricted unless you need them.
Where are my channels and permissions stored?
In the database, by default the ts3server.sqlitedb file. Back it up together with the files/ folder.
Do I need a license to run TeamSpeak 3?
TeamSpeak has its own license terms that limit free use. Read the current terms on teamspeak.com for your situation. This is general information, not legal advice.