How to open HASS ports for external access (running on a HyperV machine)?

I’m going crazy, I don’t know what else to do, I’ve read that in HyperV you can’t open machine ports, is there an alternative? Can an external network card or something similar be mounted?

???

what are you trying to achieve??

Sorry if I don’t translate well, I’m Spanish.

Open ports to access hass from outside my house

That you do in your router, haos nor hyperv has nothing to do with it….

1 Like

You may be confusing that with USB pass-through.

I have explained myself wrong again, I already have the ports open, but the problem is that Windows/Hyperv does not allow the passage of ports to a virtual machine or so I think.

I can’t get the page to work, the connection is rejected

Yes it does. You just have to ensure that the VM is bridged to your network.

Well then I don’t know where I have the error, I have ports 8123 open to the HASS IP, (192.168.1.221) the WINDOWS SERVER IP is (192.168.1.222) I have pointed it to 221 to open ports, I have it everything is correct and nothing does not allow traffic, however other ports that I have open in WS, such as 80, work perfectly

That is why you need to

Because bridge mode means the network is bridged (shared), and 192.168.1.221 is available on your local network (and can be forwarded to). Can you reach 192.168.1.221 from any machine (other then the host) on your network, or only from the host (which would indicate the VM is in host-only mode :thinking: )

Is HA on dhcp?
What kind of VM are you using? VirtualBox or VMware?

1 Like

I can access 221 from any PC/mobile locally (also homeassistant.local:8123), I have always used this way, I cannot outside the home despite having open ports.

I use a windows server virtual machine (hyperV)
If HA is with a fixed IP from the Unifi configuration (ubiquiti)

Could it be your provider blocks 8123?

You mentioned earlier that port 80 was possible to reach; have you tried forwarding that port to HA, just to check??