# User's IP address inside Custom Database Login

**URL:** <https://community.auth0.com/t/users-ip-address-inside-custom-database-login/23101>\
**Category:** Get Help\
**Tags:** custom-database\
**Created:** [March 25, 2019, 8:31pm UTC](https://community.auth0.com/t/users-ip-address-inside-custom-database-login/23101 "2019-03-25T20:31:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [March 25, 2019, 9:26pm UTC](https://community.auth0.com/t/users-ip-address-inside-custom-database-login/23101/3 "2019-03-25T21:26:48Z")

</div>

Hey there @sebastjan.stamatov, welcome to Auth0’s Community! As stated by @konrad.sopala, this is possible through [Rules](https://auth0.com/docs/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!

> [@Getting the client's IP address inside custom database login](https://community.auth0.com/t/getting-the-clients-ip-address-inside-custom-database-login/20656/2):
>
> **To obtain the IP address** :
> 
> - You need to access context object and its property `request` and then the `ip` property.

---

_[View the full topic](https://community.auth0.com/t/users-ip-address-inside-custom-database-login/23101)._
