iOS Companion App 2.0: How to use in local network only

Is there a way to configure HA to be accessible via the iOS app on the local network only ? I am not interested in allowing remote access to the HA. I did a fresh minimal install using latest version (0.103.3) without success. The app finds the instance http://192.168.1.94:9123 (yes different port number), when it tries to connect, It always gives Error: invalid client_id or redirect uri.

The logs contain

2019-12-21 16:47:00 ERROR (MainThread) [homeassistant.components.auth.indieauth] Timeout while looking up redirect_uri https://home-assistant.io/iOS

2019-12-21 16:47:00 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 192.168.1.129

As I mentioned, I only interested in accessing the HA from within the local network.

Thanks for your help.

Yes the app works local only but you do need to have working outbound connections and your error indicates your HA can’t talk to the oauth proxy at home-assistant.io.

Have a look here: https://companion.home-assistant.io/en/getting_started/migration.html#4---common-problems

IPv6 is disabled completely on my raspberry pi, as per ifconfig.

ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.94 netmask 255.255.255.0 broadcast 192.168.1.255
ether b8:27:eb:2c:4e:68 txqueuelen 1000 (Ethernet)
RX packets 280853 bytes 159470728 (152.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 298549 bytes 50545472 (48.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Lookup of the IP was a bit slow, so I added it to /etc/hosts

PING home-assistant.io (104.25.24.31) 56(84) bytes of data.
64 bytes from home-assistant.io (104.25.24.31): icmp_seq=1 ttl=56 time=31.7 ms
64 bytes from home-assistant.io (104.25.24.31): icmp_seq=2 ttl=56 time=31.3 ms
64 bytes from home-assistant.io (104.25.24.31): icmp_seq=3 ttl=56 time=31.1 ms

I have resolved the issue… The problem was with my set of nameservers. I changed the order and now the name resolution is done right away.

Thank you