How to bypass Router on Mac OS X (Port Forwarding)
May 10th, 2009 by Administrator    

This tutorial will show you how to bypass a router when trying to connect to your computer. This is also known as “port forwarding” and is useful when trying to set up a server from behind a router.

Step 1: Config your mac to have a static local IP address

Open “System Preferences” -> “Network“, and then click on which ever connection is connected on the side bar. It should have a green dot on the left indicating that the connection is active. Mine is “Ethernet 1″.

Then set it as follow:

  • Configure: Manually
  • IP Address: (you can replace your “200″ number with anything ranging from 2 – 255)
  • Subnet Mask:
  • Router: (this may vary by manufacturer, refer to your router’s manual)
  • DNS Server: (this must be the same as the router IP address because your router will be your DNS Server)
  • Search Domains: (Leave blank)

Then click Apply.

Mac OS X Manual Network Setting

Step 2

Go to your router settings page on your browser by typing (I’m using Netgear router here, please refer to your router manual for this information). If it asks for user ID and password, type it in. If this is your first time setting up the router username should be “admin” and password is “password”. This information varies by manufacturer, it should be on the back of your router. Then click on the “Port Forwarding / Port Triggering” link on the side bar.

Netgear browser setting

Step 3

In my case here, I’ve already had a list of services I setup for myself. Your’s probably empty. You can start adding services by selecting the Service Name and point it to your computer IP address we setup earlier in step 1. In my case is “″. If the service you want is not listed in there you can add your own setting by clicking on the “Add Custom Service” button. Few settings in there you need to know.

  • Service Name: Can be anything (e.g. Mysql, VNC, Remote Desktop etc…)
  • Service Type: TCP/UDP (is set by standard)
  • Starting port and Ending port: Range of simultaneous ports for a certain service. can be anything, but should conform to industry’s standard, here is the list.
  • Server IP address: this is your computer IP address.

Click Add, and there you go, you port forwarding has been setup
Netgear port forwarding

Step 4

Now go to your browser and type your IP address (remember this is NOT your local IP address starting with, this should be your ISP assigned IP address. Click here to find out what is your IP address. By default when you type your IP address, your browser will go port 80, this is the default webserver port. In my case I have port 20 and 21 used for FTP access, port 22 for Secure Shell (SSH), port 5900 for Remote Desktop (VNC) and 3306 for MySQL server on my local Mac Pro. Make sure that you have services enabled on your Mac, otherwise it will deny imcoming connection and will give your an error.

To enable sharing services go to “System Preferences” -> “Sharing“, and turn on services you want. remember replace the “” with ” your.actual.ip.address:port# “. For example if I want to connect to my remote desktop, I type in

Final Word

I hope this will help a lot of people. If you have a question please leave a comment, and I will try to reply promptly.

You might also be interested in:

One Comment

  1. It’s the best time to make some plans for the future and it’s time to be happy. I have read this post and if I could I desire to suggest you few interesting things or advice. Perhaps you can write next articles referring to this article. I want to read even more things about it!

Share your thought:

Web design by Phong Vu - All content posted on here is copyright by Phong Vu and its rightful owner.