Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client original IP address and docker-proxy #13

Open
hroost opened this issue Jan 5, 2023 · 2 comments
Open

Client original IP address and docker-proxy #13

hroost opened this issue Jan 5, 2023 · 2 comments

Comments

@hroost
Copy link

hroost commented Jan 5, 2023

Hello,

I found this strange behavior with the client's original IP address and docker-proxy.
Using default docker-compose example with

services:
  teamspeak:
    image: teamspeaksystems/teamspeak_server:58rc12
    expose:
      - "9987:9987/udp"
    ports:
      - "9987:9987/udp"

after a successful connection to the server in server logs and client's Connection Info I'm seeing my original IP.
Then let's do a server restart via docker-compose restart teamspeak and wait till TS client will perform auto reconnecting. Then check IP again - now it's internal docker 172.18.0.1 instead of the real one. Restart TS client and it's again real IP.
Btw, sometimes docker-compose restart goes smoothly (faster?) and I'm seeing real IP. In this case, trying something like that docker-compose stop teamspeak && sleep 10 && docker-compose start teamspeak helps to reproduce

TS client 5.0.0-beta71 macOS

I would appreciate any suggestions how to workaround this (ideally without network_mode: host)

@qknight
Copy link
Contributor

qknight commented Feb 5, 2023

ATM we don't have a solution to this problem. Once we go from beta to release we probably will address this issue. Thanks for reporting!

@qknight
Copy link
Contributor

qknight commented Mar 17, 2023

@hroost please have a look at #19 (comment)

Maybe by directly binding it it will not fallback to the internal address. If this helps you already, I'd love to learn so and add it to the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants