We’re using nginx as proxy server.
For the first connection, the IP/Country is forwarded by websocket connection/disconnection correctly. But after that, the IP/Country will be forwarded by the last user for Request from user.
E.g. 2 users connect to our system. User A hat IP “A” and the country “CA”, User B hat the IP “B” and the country “CB”.
A connects firstly to our server. The IP “A” and country “CA” were forwarded correctly.
B connects then to our server. The IP “B” and country “CB” were forwarded correctly too.
Now, the issue comes: All of request from A & B will be forwarded to our websocket server with only the IP/Country of B: IP “B” and country “CB”.
Until a new user © come or A disconnects his websocket connection. The IP & Country will be changed with the last connection.
Does anybody now how I can solve it?