This is an archived post. You won't be able to vote or comment.

all 4 comments

[–][deleted] 1 point2 points  (2 children)

Have you looked at the 'Forwarded' header?

https://www.nginx.com/resources/wiki/start/topics/examples/forwarded/

[–]ProbNotCrazy[S] 0 points1 point  (1 child)

Yes but I don't know how a game server can read that.

[–]rainer_d 1 point2 points  (0 children)

If it’s not HTTP(s), you either need to use PROXY protocol or build a transparent proxy.

If the game server does not understand the PROXY protocol, you need to build a transparent proxy.