TeamSpeak is proprietary, cross-platform voice over IP (VoIP) software widely used by gaming and technology communities. In this tutorial, we explain how to install a TeamSpeak 3 server on Debian/Ubuntu and Windows.
We recommend enabling strict Anti DDoS if your TS3 server is publicly accessible.
You can read more about strict anti DDoS in the following article.
Before proceeding with the installation, remember to enable UDP port 9987 and TCP port 30033 in the Clouding firewall.
Start by adding another user to run the TeamSpeak server. Set the username to 'teamspeak'. You can choose any other username you prefer.
# adduser --disabled-login teamspeak
Switch to the teamspeak user
# su teamspeak
Go to the newly created directory
# cd /home/teamspeak
Download the latest version of TeamSpeak3. Check the official TeamSpeak website for the latest 64-bit Linux Server version and replace the version number in the URL below.
# wget https://files.teamspeak-services.com/releases/server/3.13.7/teamspeak3-server_linux_amd64-3.13.7.tar.bz2
Extract the downloaded archive
# tar xvfj teamspeak3-server_linux_amd64-*.tar.bz2
Copy all the contents of the extracted directory to the teamspeak user's home directory.
# cp teamspeak3-server_linux_amd64/* -R /home/teamspeak/
The downloaded archive is no longer needed. You can delete it.
# rm teamspeak3-server_linux_amd64-*.tar.bz2
TeamSpeak 3 requires you to accept its license agreement. Accept the license agreement by creating a license file. A file named .ts3server_license_accepted will appear, indicating that you agree to its terms.
# touch /home/teamspeak/.ts3server_license_accepted
Log out of the Teamspeak user session
# exit
Create a systemd service file so that Teamspeak runs at startup.
# nano /lib/systemd/system/ts3server.service
Add the following lines and save the file:
[Unit]
Description=TeamSpeak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak
User=teamspeak
ExecStart=/home/teamspeak/ts3server_minimal_runscript.sh
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
ExecReload=/home/teamspeak/ts3server_startscript.sh restart
Restart=always
RestartSec=15
[Install]
WantedBy=multi-user.target
Reload systemd
# systemctl daemon-reload
Enable TeamSpeak to start when the server boots
# systemctl start ts3server
# systemctl enable ts3server
Check that the service is active
# systemctl status ts3server
Switch to the teamspeak user
# su teamspeak
Get the ServerAdmin privilege key needed to connect to the server for the first time.
# cat /home/teamspeak/logs/ts3server_*
The command above displays the ServerAdmin privilege key:
ServerAdmin privilege key created, please use the line below
token=
You will need to enter the key in the TeamSpeak client.
When you connect to the TS3 server for the first time, you will be prompted for the privilege key. Simply enter it to obtain Server Admin permissions.
You have successfully created and connected to a TeamSpeak3 server on Linux!
Installation on Windows:
Download the TeamSpeak 3 server software for the Windows operating system. Then extract it to any location you prefer.
Run the TeamSpeak 3 server installer:
Open the extracted TS3 server files and run the installer ts3server.exe. You will be prompted to accept the license agreement. Once you have done so, you will receive the privilege key and other information.
Connect using the TeamSpeak3 client:
Since the installer has done all the work for us, the last step is to connect to the TS3 server.
Connect using your server's public IP address.
Finally, paste the privilege key obtained earlier to gain administrator rights.
You have successfully created and connected to a TeamSpeak3 server on Windows!
Remember, if you have any questions about this or anything else related to your servers on Clouding, feel free to email soporte@clouding.io We're here to help with anything you need!