# "You can't login from that IP address"

**URL:** <https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233>\
**Category:** Support\
**Created:** [21. Juli 2015 um 06:02 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233 "2015-07-21T06:02:55Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandm09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anandm09](https://meta.discourse.org/u/anandm09)\
**Post date:** [21. Juli 2015 um 06:02 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/1 "2015-07-21T06:02:55Z")

</div>

I am getting error while login to my account

```
You can't login from that IP address.

```

How to fix it.

 ![](https://global.discourse-cdn.com/meta/original/4X/e/f/4/ef44e11ea9e9f3edff779b512c8cee572a1a985f.png)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [21. Juli 2015 um 06:32 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/2 "2015-07-21T06:32:24Z")

</div>

You have blacklisted an IP address, which prevents users from logging in using that IP address – check **Admin → Logs → Screened IPs.**

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/c/6ca11a588c34acc389d621edf6945686dcaa22d1.png)

Search for the IP or IP range that is being blocked and press the Allow button

---

<div class="post-metadata">

**Author:** ![anandm09](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@anandm09](https://meta.discourse.org/u/anandm09)\
**Post date:** [21. Juli 2015 um 06:47 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/3 "2015-07-21T06:47:17Z")

</div>

Thanks, system has blocked this particular IP range automatically!

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [21. Juli 2015 um 06:50 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/4 "2015-07-21T06:50:18Z")

</div>

It’s due to spam deletions. If you press “delete and block” or “delete spam” this happens automatically.

---

<div class="post-metadata">

**Author:** ![rriemann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rriemann/32/115238_2.png) [@rriemann](https://meta.discourse.org/u/rriemann)\
**Post date:** [1. September 2015 um 17:12 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/5 "2015-09-01T17:12:04Z")

</div>

I was experimenting with my system: I’m admin. I invited myself with another mail and I responded. Now, my admin account is blocked from this IP. So I cannot just unblock it as I only have one admin account in this forum.

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [1. September 2015 um 17:29 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/6 "2015-09-01T17:29:23Z")

</div>

The `/users/admin-login` page will work, it will email you a one-use token.

---

<div class="post-metadata">

**Author:** ![calmh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/calmh/32/115466_2.png) [@calmh](https://meta.discourse.org/u/calmh)\
**Post date:** [1. September 2015 um 18:16 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/7 "2015-09-01T18:16:30Z")

</div>

That’s neat. Is this documented somewhere? It’s the first I see of it existing.

---

<div class="post-metadata">

**Author:** ![oiclid](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oiclid/32/82392_2.png) [@oiclid](https://meta.discourse.org/u/oiclid)\
**Post date:** [1. Dezember 2017 um 07:37 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/8 "2017-12-01T07:37:04Z")

</div>

I am having a similar problem logging in using the app on my phone. Logging in using my phone or laptop browser works just fine,

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [2. Dezember 2017 um 21:40 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/9 "2017-12-02T21:40:56Z")

</div>

Your phone does not have a stable IP, so you will need to disable admin login IP filtering (this is what I would do) or use a VPN on your phone to access the forum.

---

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [20. Januar 2018 um 04:39 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/10 "2018-01-20T04:39:07Z")

</div>

I encountered the same problem.

And My admin account can not log in to it also.

How can I just change it? like form ssh?

---

<div class="post-metadata">

**Author:** ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)\
**Post date:** [20. Januar 2018 um 07:09 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/11 "2018-01-20T07:09:49Z")

</div>

Fine. I’ve done that. I don’t really know but I got on directly by url:8888 and changed the admin\>\>logs\>\> spam ips and changed the restriction.

Now it’s done.

---

<div class="post-metadata">

**Author:** ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)\
**Post date:** [18. Mai 2019 um 07:04 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/12 "2019-05-18T07:04:24Z")

</div>

I got this error today trying to log in to an admin account with ‘use admin ip whitelist’ disabled, I’ve had this issue before but couldn’t figure out what was wrong. My IP was not on the logs → screened IPs block list (or in an ip range, which I’m not using).

On v2.2.5 I had a list of blocked IPs from spammers, after looking up more info on these IP addresses ([https://whatismyipaddress.com/](https://whatismyipaddress.com/)). It showed that a lot of them are owned by Cloudflare. So it must be due to Cloudflare proxying.

Just a heads up for people using Cloudflare (exluding DNS only mode), this might be causing your issue.

I believe the real IP can be obtained from Cloudflare using CF-Connecting-IP or X-Forwarded-For headers: [https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers-](https://support.cloudflare.com/hc/en-us/articles/200170986-How-does-Cloudflare-handle-HTTP-Request-headers-)

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [18. Mai 2019 um 07:15 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/13 "2019-05-18T07:15:56Z")

</div>

Correct, there’s a template you need to add to your YML file if you’re using Cloudflare.

in `templates:` add:

```
- templates/cloudflare.template.yml

```

---

<div class="post-metadata">

**Author:** ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)\
**Post date:** [18. Mai 2019 um 07:17 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/14 "2019-05-18T07:17:48Z")

</div>

Perfect! Will add it now. Thanks @Stephen, appreciate it! 🙂

---

<div class="post-metadata">

**Author:** ![paultaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/paultaylor/32/166024_2.png) [@paultaylor](https://meta.discourse.org/u/paultaylor)\
**Post date:** [15. Januar 2020 um 13:11 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/15 "2020-01-15T13:11:15Z")

</div>

Danke, das war mein Problem. Zur Klarheit musste ich die Regel unter _Admin:Logs:Screened IPs_ ändern.

---

<div class="post-metadata">

**Author:** ![ebrett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ebrett/32/104019_2.png) [@ebrett](https://meta.discourse.org/u/ebrett)\
**Post date:** [3. Mai 2020 um 11:08 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/16 "2020-05-03T11:08:28Z")

</div>

Es sieht so aus, als ob es sich in `/u/admin-login` geändert hat und der Einweg-Token die IP-Adressenprüfung nicht umgeht. Gibt es eine andere Möglichkeit, dies zu beheben? Ich bin derzeit von meinem Forum ausgeschlossen und bin der einzige Administrator.

---

<div class="post-metadata">

**Author:** ![ebrett](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ebrett/32/104019_2.png) [@ebrett](https://meta.discourse.org/u/ebrett)\
**Post date:** [3. Mai 2020 um 11:25 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/17 "2020-05-03T11:25:18Z")

</div>

OK, verstanden – habe es über ein VPN geschafft. Kann mir jemand erklären, wie meine IP-Adresse blockiert wurde, damit ich das in Zukunft vermeiden kann?

---

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [3. Mai 2020 um 15:26 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/18 "2020-05-03T15:26:36Z")

</div>

Wenn eine „IP-Adresse für Admin-Login zulassen

---

<div class="post-metadata">

**Author:** ![goindeep](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/goindeep/32/71140_2.png) [@goindeep](https://meta.discourse.org/u/goindeep)\
**Post date:** [28. Juli 2020 um 00:30 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/19 "2020-07-28T00:30:46Z")

</div>

Hallo, ich habe als Nutzer ein Problem. Ich versuche, mich auf dem Sharetribe-Forum unter [https://www.sharetribe.com/community](https://www.sharetribe.com/community) einzuloggen. Ich kann mich weder mit meinem Handy, meinem Arbeitscomputer noch mit meinem Laptop anmelden. Sobald ich ein VPN verwende, funktioniert es. Ich habe die IP-Adressen an das Support-Team von Sharetribe gesendet. Sie sagen, dass diese nicht blockiert sind, und sie wissen nicht, was die Ursache des Fehlers ist.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [28. Juli 2020 um 02:20 UTC](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233/20 "2020-07-28T02:20:16Z")

</div>

Die Lösung wurde oben im Thema veröffentlicht:

Admin → Logs → Gescrte IPs.

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/c/6ca11a588c34acc389d621edf6945686dcaa22d1.png)

Suchen Sie nach der gesperrten IP-Adresse und klicken Sie auf die Taste Zulassen.

[Nächste Seite](https://meta.discourse.org/t/you-cant-login-from-that-ip-address/31233.md?page=2)
