How NAT (Network Address Translation) works for Virtual Machines on one computer: can the VMs "share" the host computer's IP address when communicating with a cloud server on the same WAN?

Hmm, with the VirtualBox install that I've got here, bridged mode still gives networking to the host - there's basically a virtual switch that the host and your VM's connect to internally.

Thanks for the warning. I'll set up an experiment and send packets to the machine from my other computer.

If you want to try and figure out the ports, run wireshark when your're running the services on your PC. Or ask someone :-P

Hey, thanks! That's a great idea. I just learned how to wireshark a few weeks ago, too. So there's a field in the TCP header for source and destination ports, it looks like. Thank you!!

Strange that you're having issues with your VM communicating with the WAN - if your host PC can, it should be able to as well. Missing a gateway address somewhere?

Thanks! I was wondering if there was some configuration I had to do in the guest's networking files to define the router and that's another todo on my long list of things to learn. I didn't think we had to do that in NAT mode in VirtualBox, though!

The guest I'm setting up is the same OS as the host, with the same Ubuntu install CD, so that I have examples of the setup for our network in the host's files.

Really appreciate the help. I have to get this running ASAP as it's holding up the regular work.

/r/sysadmin Thread Parent