Oracle Virtual Box: Network / Port forwarding (guest with NAT)
A guest with a «NET» can establish TCP/IP connections but cannot simply reached from the host or outside world.
In order to access a service running under a given port number, the guest must be configured with port forwarding. If so configured, the host listens on the specified port and forwards incoming TCP/IP connection requests to the specified port in the guest.
The following example forwards port 9999 on the host to 9090 on the guest:
When the guest is started, we can verify on the host that the host is indeed listening on the port 9999: