For example, I have two PC, the IP address (already set as static) of one is and another one is

In each of them, I need to use two ports, e.g. 300 and 400

So I would need to use links as below:

So does that mean I need to do port forwarding 4 times? Or I only need to do port forwarding for an IP, for example and then there would be some way I could access all the ports for that IP?



You are not specifying where you are setting the port forwarding. I am going to assume it's on the router that is connecting the 2 PCs to the internet.

You could either set those IPs as being part of DMZ - in that case ALL of the ports are open - caution here, it's a security risk!

or you can setup the router to forward the ports, but you need to do it the following way:

Let's say public IP is you would set it up as: -> -> -> ->

The reason for that is that the router can only translate 1 port on the external IP to 1 port on the interla IP - this is called NAT. If you need more info, look at here: NAT on WiKI

| improve this answer | |
  • For example if I am using port forwarding service from a third party (e.g. dyn.com) I will still have to set for four times, right? [e.g. thirdparty.com:301 -> thirdparty.com:302 -> thirdparty.com:303 -> thirdparty.com:304 ->] – MW_hk Jun 11 '13 at 7:23
  • yes you will, there is no other way around that - if you like mu answer, please accept it and place a vote - really appreciate it, Thank you! – TomEus Jun 11 '13 at 15:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.