Home assistant peer to peer VPN connection

Hi,
I have just recently set up the Tailscale add-on and everything seems to be working but I wanted to check I understand what is actually going on…

Tailscale provides a peer to peer VPN (i think). In the companion app I have configured the “Home Assistant URL” to be the external IP provided by Tailscale. I have configure the “Internal Connection URL” to be the local IP address of my home assistant instance. I am however unclear on the following:

  1. If my phone is connected to my local network with the home assistant app automatically switch to the local IP address? I assume so as I wouldn’t want it going all the way through the VPN server (not that I think peer to peer would do that anyway…)

  2. If I am away from home and have my Tailscale VPN enabled on my phone, will only the traffic related to home assistant go through this?

  3. Is there any way to see a list of IP addresses that are accessing my home assistant instance? It would be good if I could see any external connections.

Sorry networking is not my strong point! Thanks in advance

  1. It doesn’t actually matter, as you mention, but I assume HA will use the internal address if you’re on your home wifi and you configured the internal url
  2. Yes, by default.
  3. Not that I know, but if you only enabled tailscale and didn’t do any port forwarding towards HA on your router, nobody from external can reach your HA but with tailscale.