Mac OS: Port Forwarding

Termianl-Icon

I use a Mac and I’ve been working in virtual machines (VirtualBox) to learn more about Linux as a server environment. It’s great, to say the least. Knowing you can revert back to a previous “system snapshot” is a wonderful assurance for when you know you’re going to mess thing up.

With all this greatness, I was unfortunately  having a lot of trouble getting the VM server to connect to other computers. Actually, it was very easy with using a bridged ethernet connection, with the Ubuntu server getting a unique IP address. However, a bridged connection is not always available, so I was determined to get it to work with a NAT connection with port forwarding. I needed port 80 to be forwarded to port 8080, and it was a pain but I finally got port forwarding to work. Here’s how:

Continue reading