A local port is an open port when accessing your computer relative to other computers on the network.
A remote port is a port that you need to open when accessing other computers on the network.
For example, if you use QQ, your local port is 4000 or 8000.
The essence is the same, but it needs relativity.