User's IP address inside Custom Database Login

Hey there @sebastjan.stamatov, welcome to Auth0’s Community! As stated by @konrad.sopala, this is possible through Rules. It’s important to be aware that rules only are triggered upon a successful authentication request. I have quoted Konrad below who dives into what is needed to obtain the IP address. In the event you run into any issues implementing this or have found it incorrect, please let me know as I am happy to help. Thanks!