# All users have the same IP (the Servers IP)?

**URL:** <https://meta.discourse.org/t/all-users-have-the-same-ip-the-servers-ip/25850>\
**Category:** Self-hosting\
**Created:** [1. März 2015 um 09:52 UTC](https://meta.discourse.org/t/all-users-have-the-same-ip-the-servers-ip/25850 "2015-03-01T09:52:20Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Thanatermesis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thanatermesis/32/119521_2.png) [@Thanatermesis](https://meta.discourse.org/u/Thanatermesis)\
**Post date:** [17. Juli 2018 um 11:55 UTC](https://meta.discourse.org/t/all-users-have-the-same-ip-the-servers-ip/25850/12 "2018-07-17T11:55:28Z")

</div>

> [@elberet](#):
>
> Anyway, you can run this in the Rails console inside the container (or, if you prefer that, extract the SQL bit and run it in `psql` ):
> 
> User.exec\_sql(“UPDATE users SET registration\_ip\_address = ip\_address WHERE registration\_ip\_address = inet ‘10.0.0.1’ AND ip\_address IS NOT NULL”)

I tried to run this command from:

> cd /var/discourse/  
> ./launcher enter app  
> rails c

But it shows me errors, how i should reset all registered-ip’s from the users?

---

_[View the full topic](https://meta.discourse.org/t/all-users-have-the-same-ip-the-servers-ip/25850)._
