If you get an error "Socket Error 11004" when trying to connect, there are a lot of different causes and solutions possible.
The first thing to verify is that your address field is correctly filled.
Open your connection window in teamspeak and verify that your address does not have any spaces, unwanted caracters or missing caracters.
Commun error is to copy paste the address with a trailing space or forgetting to put the port in the address.
Verify your address format
The address should look like this: IP.IP.IP.IP:PORT or ADDRESS:PORT
The port an IP is provided in your account.
In some cases the problem is a DNS issue
If you are using the domain name to connect, for example "ts2.light-speed.com:9999", try using the IP address instead.
Another commun cause is the firewalls and anti virus.
Try closing all your firewalls/anti-virus and then try to connect to your teamspeak server.
If you are now able to connect, it means that your firewall or anti-virus is blocking the port to connect to your teamspeak server. You need to find the option in your firewall where you can open that specific port.