T
T
Toster Guest2018-10-29 11:41:33
virtual box
Toster Guest, 2018-10-29 11:41:33

How to properly forward ports in VirtualBox?

How to forward ports in VirtualBox so that inside the VM you can see the real IP, and not 10.0.0.2 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Drno, 2018-10-29
@Drno

Need to forward ip or ports?
If you need virtualbox to get into the network from your local PC, then set the bridge mode in the network adapter, and put your network adapter below. The VM will start getting an address on your PC's subnet from the router.

S
Saboteur, 2018-10-29
@saboteur_kiev

The question is technically incorrect.
Port forwarding does not work so that the VM sees the real IP.
Just forward the port outside to the VM, so those who connect to the host on port X actually end up on the VM port Y

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question