Answer the question
In order to leave comments, you need to log in
How to connect from a local network to a site running on a virtual machine?
How to connect to the site from the local network?
The site is on a virtual machine, in ubuntu server. Apache2. You need access from a PC in the local network.
Answer the question
In order to leave comments, you need to log in
Depending on how the network connection is organized in the virtual machine, if through Virtualbox NAT (by default) - then the ports can be forwarded in the settings there.
It depends on how the network is configured in the virtual machine, without this data it is impossible to answer the question.
It turned out to connect localhost: 8080 from the main PC. NAT connection. How to connect from another PC on the network?
In the network, I suppose, there is a router and external ports on Apache are forwarded on it? If so, then look carefully at the forwarding settings on the router. It should forward from all directions, just from the external IP.
After that, the site will open from the local network in the same way as from any other. Just open up. By site address.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question