J
J
JerCo2019-11-08 17:52:07
Computer networks
JerCo, 2019-11-08 17:52:07

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

6 answer(s)
S
SagePtr, 2019-11-08
@SagePtr

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.

D
devalone, 2019-11-08
@devalone

It depends on how the network is configured in the virtual machine, without this data it is impossible to answer the question.

J
JerCo, 2019-11-10
@JerCo

It turned out to connect localhost: 8080 from the main PC. NAT connection. How to connect from another PC on the network?

P
pindschik, 2019-11-14
@pindschik

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 question

Ask a Question

731 491 924 answers to any question