I use colyseus/proxy for my game.
If I use this code to get ip. I only get ip of proxy of cloud. Not client's ip.
async onAuth(client: Client, options: any, request: http.IncomingMessage) {
const ip = request.headers['x-forwarded-for'] || request.connection.remoteAddress;
}
Anyone has same problem ? And how to solve this problem ?