I think I’m missing a document in the HA “How to” docs. I just installed the Hyper-V VM on a Windows 10 Pro machine. I start up the VM and go to http://homeassistant.local:8123 and setup a user. No problem.
When I download the HA iPhone App from the App Store, then “Scan for Servers”, nothing is found. If I enter http://homeassistant.local:8123 as “Enter Address Manually”, the system times out (“NSURL Timeout” error).
How do I expose the VM to my network in a safe way that the iPhone App can find it?
Don’t you just look in hyper V and see what IP address was assigned to the VM?
Did you configure a default switch to actually give it network access? This is not HA specific so maybe check some generic guides for hyper V on setting up network access and setting a static IP for a VM.
right now you are using the default switch. I believe this can only give you a dynamic IP.
the 172 IP is internal and im 99% sure you can’t access home assistant using that IP anyway as it only works within the VM.
You need to create a virtual switch, configure the VM to use the virtual switch and then you can set a static ip for the VM under the advanced features section.
I found that running ha network info command was helpful to determine the IP address of the VM. Putting this IP address into the mobile app instead of http://homeassistant.local:8123 results in the same error above.
I’m connected to the same WiFi network on the server and iPhone (though I don’t think this is the issue).
I’m working at SAFELY creating a new Virtual Switch for the VM. This is going to require a bit of research because I have no idea how Home Assistant provides security to/for the VM.
Example: When I run security info on the HA VM, the results are…somewhat frightening.
All you are doing is configuring the VM to be accessible within your home network on a static IP address. Nothing I’ve mentioned makes it accessible outside your home.
When I was initially creating the VSWITCH in Hyper-V, I saw “External” as the type of switch. I assumed that meant “internet accessible”. I was incorrect (Hyper-V doc).
Sweet! Thanks @SgtBatten, your suggestion worked. I created a Virtual Switch in Hyper-V. After that, opening the Mobile App showed an HA Server on the network.
I’ll PR the docs with some screenshots if the project wants it.
Great, just remember to setup a static IP if you ever want to access it via a LAN IP address or externally in the future. I tend to set static IPs for everything so i know where to find them on my network.