1st:
ts3server://
is only used for sharinf connection information between clients.
It is NOT used for connecting to a server.
A server uses UDP for the voice connection.
UDP does not use those protocols known for TCP.
2nd:
If you host your TS server on the same host as the Apache server there is neither need for a subdomain, nor for a (reverse) proxy.
3rd:
If the TS ans Apache server run on different hosts with different IPs you will need either a reverse proxy for the default domain, OR a subdomain leading to the different host.
So how does it work then?
Assuming both your apache and TS server runs on 1.1.1.1
.
You simply need to open the TS server port UDP (default 9987/udp
) through the firewall.
Assuming apache runs on 1.1.1.1
and TS on 2.2.2.2
and you want to use a subdomain.
Simply set the A record for the subdomain to point to 2.2.2.2
and allow 9987/udp
through the firewall of 2.2.2.2
.
Assuming apache runs on 1.1.1.1
and TS on 2.2.2.2
and you want to use the same domain.
Set up a reverse proxy in apache to listen to port 9987/udp
and redirect / stream the traffic to the same port on 1.1.1.1
. Both machines need to have port 9987/udp
opened in the firewall.
Even if port 9987/udp
is technically enough, it is recommended to also allow / forward the ports found here: https://support.teamspeak.com/hc/en-us/articles/360002712257-Which-ports-does-the-TeamSpeak-3-server-use-