Skip to content

Android app will not connect to HA when moving to different WiFi access point: invalid authentication from localhost #6120

@AllardKatan

Description

@AllardKatan

Hi,

I've been having this problem for a while (3 months at least). About time to report it.

When I am in my house, and I move to a part of the house where my WiFi is connected through a different access point, the Home Assistant app will no longer connect to my instance. The observations:

  1. The app will report that the instance can not be used whether connecting through the internal or the external URL (I use Nabu Casa for external access)
  2. When going to Firefox Mobile on my phone, I am still able to connect to my instance through the browser with both the internal and the external URLs.
  3. Whenever this happens, my HA reports an invalid authentication, see log excerpt below.

This has been happening for a while, I don't know exactly when it started. I use HA on a Virtualbox VM, latest version always (currently 2025.12.b2), my phone is a Fairphone 6, the companion app version is 2025.11.4 currently, Android version15. My 'regular' router is a Zyxel T-56, I have a Fritz! extender connected through ethernet that is set up as an extender, giving the same SSID and not changing the IP of the phone.

Any clues what could cause this?

Source: components/http/ban.py:136
integration: HTTP ([documentation](https://rc.home-assistant.io/integrations/http), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+http%22))
First occurred: 03:39:11 (2 occurrences)
Last logged: 03:39:20
Login attempt or request with invalid authentication from localhost (127.0.0.1). Requested URL: '/api/websocket'. (Mozilla/5.0 (Linux; Android 15; Fairphone 6 Build/FP6.QREL.15.151.0; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/142.0.7444.102 Mobile Safari/537.36 Home Assistant/2025.11.4-19134 (Android 15; Fairphone 6)) ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions