How does the network work? Can access from local computer but not from laptop in same LAN?

Hi guys!

I am kinda noob on this networking part and reading documentation I couldn’t fiddle this out.

I’ve managed to get ubuntu image to use 10.62.176.55 and downloaded nginx and its accessible by the computer that started this.

But how come when I try to navigate to this site by laptop it doesnt load eventhough it uses same wifi?

Hi!

The default network configuration makes the containers private to the host that has them. You cannot access them from the LAN unless you expose, for example, the web port (80) of the container to the host. See how to do this, https://blog.simos.info/how-to-use-the-lxd-proxy-device-to-map-ports-between-the-host-and-the-containers/

Alternatively, if your host is connected over LAN (ethernet cable), you can make the container appear as a new computer on the LAN (instead of hidden inside the host). See more at https://blog.simos.info/how-to-make-your-lxd-container-get-ip-addresses-from-your-lan/