# Getting the client's IP address inside custom database login

**URL:** <https://community.auth0.com/t/getting-the-clients-ip-address-inside-custom-database-login/20656>\
**Category:** Get Help\
**Tags:** custom-database\
**Created:** [January 29, 2019, 3:52am UTC](https://community.auth0.com/t/getting-the-clients-ip-address-inside-custom-database-login/20656 "2019-01-29T03:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [January 29, 2019, 11:24am UTC](https://community.auth0.com/t/getting-the-clients-ip-address-inside-custom-database-login/20656/2 "2019-01-29T11:24:26Z")

</div>

Hey @andreaskoepke!

I’m not experienced in Node.js and have no idea whether it’s possible to do that with it but as you said you can **obtain user IP address with Rules**.

Important thing to remember is that **Rules are triggered at successful login**

**To obtain the IP address** :

- You need to access context object and its property `request` and then the `ip` property.

I’ll try to find out internally whether it’s doable any other way!

---

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