T
T
TheStigger12015-06-02 00:18:52
linux
TheStigger1, 2015-06-02 00:18:52

How to access a site that is hosted on the same local network in a virtual machine?

Set up a web server in a VirtualBox virtual machine. From the virtual machine I can open the site by IP. The network adapter settings are of the "bridge" type. From other machines on the local network, I can ping the virtual machine and access it via ssh.
But from other machines I can’t open a site via IP (actually I can’t) that is running in a virtual machine. What could be the problem?
UPD: it turned out to solve the problem by disabling iptables
sudo service iptables stop

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Tartmin, 2015-06-02
@TheStigger1

Is the network in bridge or still NAT? If there is a bridge, try to ping the gateway from the virtual machine, if everything is fine, deal with the firewalls.

A
Alexander Lalikin, 2015-06-02
@Lalikin

find out ip, register in hosts

D
de1m, 2015-06-02
@de1m

I had something similar. In the network settings in virtualbox, you can set access permissions - vm can contact everyone, only with the host and with everyone, look what is there
Here, it's called Promiscuous mode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question