My servers are set up like this:
TF2 Client (player) -> Tunnel server -> Game server
This masks the game server's IP.
Let's say the Tunnel Server's ip is tt.ttt.ttt.ttt and the game server's ip is gg.ggg.ggg.ggg
I can connect to the game server using the tunnel server's IP just fine (tt.ttt.ttt.ttt).
I cannot connect to the game server using gg.ggg.ggg.ggg, this is intended. I have not opened ports on this network.
However, the Game Server reports the server as:
Code:
Connection to Steam servers successful.
Public IP to Steam is gg.ggg.ggg.ggg
And
Code:
https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=gg.ggg.ggg.ggg&format=json
reports my servers as running, while
Code:
https://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=tt.ttt.ttt.ttt&format=json
does not report my servers as running.
This is because my game server reports its own public IP to steam.
Adding
Code:
+net_public_adr tt.ttt.ttt.ttt
or
Code:
+net_public_addr tt.ttt.ttt.ttt
doesn't seem to have an effect.
If I change
to
, I get this fatal error:
Code:
WARNING: NNET_OpenSocket: bind: Cannot assign requested address
FATAL ERROR: Couldn't allocate any server IP port
My startup command is this:
Code:
./srcds_run -game tf -console -port {{SERVER_PORT}} +map {{SRCDS_MAP}} +ip 0.0.0.0 -strictportbind -norestart +sv_setsteamaccount {{STEAM_ACC}}
How do I change it so that my game server reports the tunnel server's IP to steam, instead of the game server?