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
.
Best posts made by KiloGram
RE: How do I get the user's IP address?
posted in Questions & Help •