How do I get the user's IP address?

hi~ can get user IP in the following ways. How can colyseus do similar things?


I know this is old, but maybe you still need an answer - it can be found here in the docs. Essentially the onAuth(client, options, request) function takes a third parameter request which you can then use to get the IP with request.connection.remoteAddress.

Perfect answer !!!