Multiple Access Point Issue - invalid authentication

So I recently go HA up and running with Hassbian. It works great, however, I have multiple routers in my house. One as a main router and the other to serve as an Access Point for greater wifi access. However, when my phone is connected to the access point, the devices IP address is shown as 192.168.1.2 vs. the actual device IP. HA seems to block the connection.

WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.2

Solved! sorry! updated my config to this… maybe someone else will have this issue and this will help them.

http:
  use_x_forwarded_for: True
  trusted_proxies:
    - 127.0.0.1
    - ::1
    - 192.168.1.2
  trusted_networks:
    - 192.168.1.2

This does not seem to work.

Side note: it seems after not using or connecting to my Raspberry Pi, it goes into sleep mode or HA just stops working. If I continue to interact with it, I have no problems. Is there a way to fix this? I found something online about updating the lightdm.conf but that doesn’t exist on my Pi.

You say you phone gets an IP address other than it’s real address. It sounds like you may have multiple dhcp servers running. You also say you are using a second router as a AP. Is it actually a second router, or is it an AP?

The IP address my phone shows is the IP address of the AP. It’s a router that I have configured to be an access point… but maybe it’s not setup correctly. I have DHCP disabled on the other router that is acting as an AP. I wonder if this is what is causing issues with some of our devices to disconnect from the wifi… I’ll take a look at the setup I have on the other router and see if I can make some changes.

yea I’ve never had consistent luck getting a router to act as an AP only and not a router. But that’s just my experience.

Ok, I ordered some devices that are strictly AP’s. I’ll then disable the Wifi on my router and use the AP’s. Hopefully that fixes the issue as well as fixes the issue where devices disconnect.