User Ip Connection

Behnam Hatami
Added over 3 years ago

Hi, In our use case of tigase, we need to log the IP address that each user connects to the server (when user authenticates) into a database,

is there any automatic way to do this?

if not, how can I add this feature and which part of tigase should be modified?


Behnam Hatami

Replies (1)


Added by Artur Hefczyc TigaseTeam over 3 years ago

There is no out of the box solution to this. The best option would be to write a plugin for Tigase which intercepts certain packet, such as resource bind for example, so you know the user is successfully authenticated and then parse user's IP address from the connectionID string and store it in DB.