I'm running Prosody server on ubuntu.
I was wondering if there's a possible way to get the IP address of each client who connects to my server, basically, I want 2 things:
1) I want to get the IP address of the user who uses a JID of my server.
2) I want to get the IP address of the user who enters a conference on my server.
Now there's a module that works kinda similar like what I need, but to get the IP, I have to use prosodyctl which doesn't help what I'm trying to do.
So, is there a possible way to save their IPs in a file maybe? or any other way to get it rather than using prosodyctl? Thank you.
You need to enable
mod_log_auth
https://code.google.com/p/prosody-modules/wiki/mod_log_auth
Then you need to add the following on your config file:
log_auth_ips = "all"
This will log the IP of all incoming connections (failed or not).