Quote Originally Posted by MarkCros View Post
Try using a NAT network connection.
Good suggestion! Also, to set up a NAT network in VirtualBox, make sure that “NAT” mode is selected in the network settings for your Ubuntu VM, and the port is forwarded correctly via the “Port Forwarding” settings. This is important if you want to provide access to an application from a Windows host. For example, for a web server on port 8080, you can configure port forwarding in VirtualBox like this:
Code:
Protocol: TCP
Host IP: 127.0.0.1
Host Port: 8080
Guest IP: 192.168.0.100
Guest Port: 8080
This way, you can access the web server at 127.0.0.1:8080 from the host.
And don't forget that the firewall on the Ubuntu VM can block access. Check the settings of UFW (if used) or another network firewall to see if it allows connections on the correct port