IP Addresses and country flags not shown when using a local connection

The TS6 Client does not display the correct IP address and also does not display the client’s country flag.

The setting to show the flags is enabled on my client:
image

If I have to guess … The IP address which is shown to you is a private IP (10.x.x.x, 172.16.x.x, 192.168.x.x) → From such IP addresses the server is unable to get the location and therefore cannot show to you the country flag.

3 Likes

When connecting trough a local host connection the flags will not be recognised. This however is normal TeamSpeak behaviour.

6 Likes

Sorry forgot to say that this is hosted on a Netcup Rootserver. :smiley:
I will look if i have a error in the Docker Config tho.

Damn guys, sorry for this useless topic. The error was on my side!
I changed the network mode to “host” in the compose and now its displaying the correct IP and also the flags. Clearly a error on my side! :man_facepalming:

1 Like

Basically speaking, everything is fine with your docker configuration when a local IP is shown. You configured something like:

networks:
  teamspeak_net:
    driver: bridge

Docker has a “so called” bridge implemented. This bridge is a bit working like a NAT (Network Address Translation) → the incoming connection with the external IP address is “parked” within the bridge and the bridge is then communicating on behalf of the incoming connection with your teamspeak server. Please have a look on this diagram:

Please have a look here: Networking | Docker Docs

To resolve this, I would recommend to switch from a bridge network to a host network. Then, the container will directly work with the incoming IP addresses and will show correctly the country flags (as you already said :grimacing:).

I also like this diagram which nicely shows the difference between bridge and host:

1 Like