# Pre User Registration - Cannot get user IP address

**URL:** <https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613>\
**Category:** Get Help\
**Tags:** signup, hooks\
**Created:** [May 26, 2020, 4:41am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613 "2020-05-26T04:41:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuhoang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tuhoang/32/18416_2.png) [@tuhoang](https://community.auth0.com/u/tuhoang)\
**Post date:** [May 26, 2020, 4:41am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/1 "2020-05-26T04:41:39Z")

</div>

I have a rule that refuses users’ registration from a range of IP addresses  
I created a [Pre Registration hook]  
However, I cannot get the user IP address from [Pre Registration hook]. Is there any way to get a user `context request` IP address or GeoIP from [Pre-registration hook] as Rules and [Send Phone Message hook] did?

I realized that you are supporting to get user IP address from [Send Phone Message hook] already. So could you please support this for [Pre Registration hooks] too?

---

<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:** [May 26, 2020, 11:17am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/2 "2020-05-26T11:17:54Z")

</div>

Hey there! It seems that you asked that using multiple channels. Our team responsible for Rules and Hooks is already looking into that. Once they share their point of view, I’ll share it here. Thanks!

---

<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:** [May 28, 2020, 9:01am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/4 "2020-05-28T09:01:10Z")

</div>

Hey there!

Still waiting for the response from the team but I just pinged them so should have it later today!

---

<div class="post-metadata">

**Author:** ![tuhoang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tuhoang/32/18416_2.png) [@tuhoang](https://community.auth0.com/u/tuhoang)\
**Post date:** [May 28, 2020, 9:10am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/5 "2020-05-28T09:10:28Z")

</div>

Many thanks for your enthusiastic help. I really hope that is possible

---

<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:** [May 28, 2020, 9:11am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/6 "2020-05-28T09:11:52Z")

</div>

No worries! We’re here for you! I’ll let you know once I hear back from them

---

<div class="post-metadata">

**Author:** ![tuhoang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tuhoang/32/18416_2.png) [@tuhoang](https://community.auth0.com/u/tuhoang)\
**Post date:** [June 4, 2020, 1:32am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/7 "2020-06-04T01:32:06Z")

</div>

I’m sorry but how about the progress?

---

<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:** [June 4, 2020, 12:01pm UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/8 "2020-06-04T12:01:21Z")

</div>

Hey there!

Let me reping the team as I have no response for now. Sorry for the delay!

---

<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:** [June 5, 2020, 7:41am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/9 "2020-06-05T07:41:23Z")

</div>

Hey there!

Sorry once more for the delay. I just got the info from the responsible team.

This feature request have been put into our backlog and the team will attempt to address it before the end of Q2. Initial assessment is that we will likely support IP address only and not the GeoIP.

---

<div class="post-metadata">

**Author:** ![tuhoang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tuhoang/32/18416_2.png) [@tuhoang](https://community.auth0.com/u/tuhoang)\
**Post date:** [June 5, 2020, 8:00am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/10 "2020-06-05T08:00:51Z")

</div>

I really appreciate, please give me a thank to the development team, and thank you!

---

<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:** [June 5, 2020, 8:04am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/11 "2020-06-05T08:04:36Z")

</div>

No worries! We’re here for you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [June 20, 2020, 8:11am UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/12 "2020-06-20T08:11:52Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

---

<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:** [July 2, 2020, 2:58pm UTC](https://community.auth0.com/t/pre-user-registration-cannot-get-user-ip-address/43613/13 "2020-07-02T14:58:05Z")

</div>

Hey there! The team responsible for the feature just updated me that they rolled out the support with `context.ip.address` in `pre-user-registration` hook.

> **[Pre-User Registration](https://auth0.com/docs/customize/hooks/extensibility-points/pre-user-registration)**
>
> Learn how Hooks can be used with the Pre-User Registration extensibility point, which is available for database connections and passwordless connections.
