How to Configure a Dedicated Server for TeamSpeak Hosting
TeamSpeak is a popular voice communication software used by gamers, businesses, and organizations for real-time voice chat. Hosting your own TeamSpeak server on a dedicated server gives you full control over your voice channels, user management, and server settings. Follow these steps to configure your server for TeamSpeak hosting.
Step 1: Update Your Dedicated Server
To ensure your server has the latest security patches and updates, you should update the system before installing TeamSpeak.
- For Ubuntu/Debian:
sudo apt update && sudo apt upgrade -y
- For CentOS/RHEL:
sudo yum update -y
Step 2: Install Dependencies
Before installing TeamSpeak, you'll need to install the necessary dependencies for the server to function properly.
- For Ubuntu/Debian:
sudo apt install -y screen libglib2.0-0 libsm6 libxrender1 libx11-6
- For CentOS/RHEL:
sudo yum install -y screen glib2.x86_64 libSM.x86_64 libXrender.x86_64 libX11.x86_64
Step 3: Download the TeamSpeak Server Files
You’ll need to download the TeamSpeak server files from the official website.
- Visit the TeamSpeak Download Page and copy the download link for the Linux server.
- Use
wget
to download the server package:- For Ubuntu/Debian:
wget https://files.teamspeak-services.com/releases/server/3.13.6/teamspeak3-server_linux_amd64-3.13.6.tar.bz2
- For CentOS/RHEL:
wget https://files.teamspeak-services.com/releases/server/3.13.6/teamspeak3-server_linux_amd64-3.13.6.tar.bz2
- For Ubuntu/Debian:
Step 4: Extract and Set Up TeamSpeak
Once the download is complete, extract the TeamSpeak server files.
- Extract the server files:
tar -xjf teamspeak3-server_linux_amd64-3.13.6.tar.bz2
- Navigate to the extracted directory:
cd teamspeak3-server_linux_amd64
Step 5: Accept the End-User License Agreement (EULA)
Before running the TeamSpeak server, you need to accept the EULA by agreeing to the terms.
-
Open the
LICENSE
file using a text editor:nano LICENSE
-
Read and accept the license agreement.
-
Once you’ve read and accepted the agreement, create a
teamspeak
user to run the server for better security:sudo useradd -m -s /bin/bash teamspeak
sudo chown -R teamspeak:teamspeak /path/to/teamspeak3-server_linux_amd64
Step 6: Start the TeamSpeak Server
Now you can start the TeamSpeak server.
-
Run the TeamSpeak server:
./ts3server_startscript.sh start
-
The server will generate an initial admin token. Copy this token, as it will be required for the initial admin setup.
Step 7: Configure Firewall for TeamSpeak Server
To ensure your server can communicate with clients, open the required ports in your server’s firewall.
TeamSpeak uses the following default ports:
- UDP 9987 – For voice traffic
- TCP 30033 – For file transfers
- TCP 10011 – For the server query (used for administration)
- For Ubuntu/Debian with UFW:
sudo ufw allow 9987/udp
sudo ufw allow 30033/tcp
sudo ufw allow 10011/tcp
- For CentOS/RHEL with firewalld:
sudo firewall-cmd --zone=public --add-port=9987/udp --permanent
sudo firewall-cmd --zone=public --add-port=30033/tcp --permanent
sudo firewall-cmd --zone=public --add-port=10011/tcp --permanent
sudo firewall-cmd --reload
Step 8: Set Up TeamSpeak Server as a System Service
To ensure that your TeamSpeak server starts automatically on boot, you should configure it as a system service.
-
Create a service file for TeamSpeak:
sudo nano /etc/systemd/system/teamspeak.service
-
Add the following configuration to the service file:
[Unit] Description=TeamSpeak 3 Server After=network.target [Service] User=teamspeak ExecStart=/path/to/teamspeak3-server_linux_amd64/ts3server_startscript.sh start ExecStop=/path/to/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop WorkingDirectory=/path/to/teamspeak3-server_linux_amd64 Restart=on-failure RestartSec=3 [Install] WantedBy=multi-user.target
-
Reload systemd to apply the changes:
sudo systemctl daemon-reload
-
Enable the TeamSpeak service to start on boot:
sudo systemctl enable teamspeak
-
Start the TeamSpeak service:
sudo systemctl start teamspeak
Step 9: Access the TeamSpeak Server
Once the server is running, you can access the TeamSpeak server using the TeamSpeak client.
- Download the TeamSpeak client from the official TeamSpeak website.
- Launch the TeamSpeak client and connect to your server using your server’s IP address and port
9987
. - Admin Setup:
- When you connect for the first time, use the admin token you saved earlier to log in as the server admin.
- You can manage users, create channels, and configure server settings from the admin interface.
Step 10: Customize TeamSpeak Server Settings
Once you have access to your server, you can start customizing your TeamSpeak server.
- Set up channels, user permissions, and server settings through the TeamSpeak client interface.
- Configure server groups for admins, moderators, and regular users.
- Set up server-specific settings like message of the day, welcome messages, and user limits.
Conclusion
Congratulations! You have successfully set up and configured a TeamSpeak server on your dedicated server. By following these steps, you now have full control over your voice communication server, enabling you to provide a stable and customizable communication experience for your users.
This guide is designed to help you set up a fully functional TeamSpeak server on your dedicated server, allowing you to manage voice channels, users, and server settings. Happy hosting!