2
I'm using the VirtualBox NatNetwork type to connect most of my VMs to the host (with the required ports set up for forwarding). I'd like to know how I can connect to the local loopback ("localhost") of the host from inside the VM (e.g. use apt-cacher-ng inside the VM).
The usage of NAT with connections to IPs of interfaces of the host is clear for me and works.
I'm using VirtualBox 4.3.10 on Ubuntu 14.04 with Linux 3.11.13.
See host-only networking in the manual.
– reinierpost – 2016-03-24T11:49:15.750You cannot do that. Localhost is always a local interface that never leaves the computer it is used in. – Tero Kilkanen – 2014-05-04T10:32:14.163