On the virtual server (VirtualBox) there is a website. The laptop is in the WI-FI network. How to make, that all who is in this network, could come on this site.

Computer IP - 192.168.0.106

VirtualBox IP - 192.168.100.1

eth0 - 192.168.100.100

tuning

sites-enabled/default server { listen 80; server_name localhost; location / { root /var/www; index index.html index.php; } } 

1 answer 1

The easiest option is to throw everything into one address space. In the network settings of virtual box make a "network bridge".

enter image description here

  • printscreen.ninja/s/49FM if there is no eth0 in the text - Abylkhair
  • @Abylkhair, well, since the laptop communicates with everyone through Wi-Fi, then do a bridge with it. - don Rumata