Difference Between Public and Private Ports?

In setting up port forwarding on an AirPort Extreme n, I've discovered terminology I'm not familiar with. There are both "Public" and "Private" TCP & UDP port fields.

I understand the difference between TCP & UDP, but I don't get the Public vs. Private thing. Is one incoming and the other outgoing? If so, then which is which? If not, then what are they?

Additionally, when an app Just says, "UDP 407 & TCP 407, 1417-1420" like Timbuktu does, then what most likley do they mean? Do they mean Public, Private, or both?

Many thanks!

Mac Pro, Mac OS X (10.5.1), 2 X 3.0 GHz / 4 GB RAM / Vista Ultimate (Bootcamp & VMware Fusion)

Posted on Jan 30, 2008 7:44 AM

Reply
4 replies

Jan 30, 2008 8:26 AM in response to James Reffner

The "public" port is the port which appears on the Internet side. When remotely connecting you will use that port.

The "private" port is the port used to connect to the device on your LAN.

If you wanted to host a web page your computer would default to using port 80. However some ISPs block port 80. So you would use a different public port to bypass the ISP's block. For instance you could configure port forwarding to use a public port of 8080 but a private port of 80. Then from the Internet you would use http://yourPublicIPAddress:8080 to access your web server.

Jan 30, 2008 9:21 AM in response to James Reffner

There is still some misunderstanding...

If your service is using port 548 for example, when you configure port forwarding through the AirPort Extreme base station (AEBS) you would use:

Public port: 548
IP address: IP address of device providing the service
Private port: 548

If your ISP is blocking port 548 you might decide to use port 1548. In that case you would use:

Public port: 1548
IP address: IP address of device providing the service
Private port: 548

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Difference Between Public and Private Ports?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.