Router Port Forwarding – Forwarding the Same Port to Multiple LAN Servers


I would like to be able to use the Wake-On-LAN feature to be able to turn on the two computers attached to my router when i am out of the house using my WAN IP Address.

Router =
PC A =
PC B =

Now i have set port forwarding up on my router which takes incoming connections of UDP port 9 and then forwards the packet to LAN server

How would i go about choosing which LAN computer i would wake when my router only allows my to forward a port to a single computer, Or is this even possible?

Thanks for any input on the matter

Best Answer

It is not possible. (At least, not in the way to asked.)

You need an unique combination of IP and port number to determine what to do with it. In your case you want:

  • External IP, port 9, forwarded to, port 9
  • External IP, port 9, forwarded to, port 9

There is no way your router will known which of those two rules to use.

What you can do is is to forward a port to another port number. For instance:

  • External IP, port 9, forwarded to, port 9
  • External IP, port 9999, forwarded to, port 9
    (Or any other unused port number).

Alternatively, you may be able to log in on the router and sent the the WakeOnLan locally to the right PC, or wake PC A, log in on PC A and send a WoL packet to PC B.

Related Question