We have 5 static public IP addresses. But we have a number of machines that we want to RDP into from home (our individual work pcs, a couple of servers, etc). Is there away to setup our router so that we can use 1 up address and route the RDP request to different machines based on port or something?


You could also setup a Terminal Server Gateway. It only needs 1 open port (443, aka HTTPS), requires users to authenticate to it before letting anyone know what machines are on/available or what software they might be running. This of course requires a server that supports Terminal Server Gateway (Server 2003, 2008, etc).

  • +1 - that is exactly the professional solution. VERY nice, i use it all the time. – TomTom Nov 15 '10 at 21:27
  • Does that allow me to connect to windows 7 machines on the network or only servers? – Micah Nov 16 '10 at 19:56
  • Almost any RDP Server can be connected to. I have personally used Windows 2000, XP, Vista, 7, Server 2003, 2008/R2. I've been told it also works for xRDP, but I haven't tried it myself. For the older OSes, you can't use NLA, just a configuration checkbox that needs to be unchecked. – Chris S Nov 16 '10 at 20:18
  • BTW, I got this up and running and it's awesome! Thanks for the suggestion. I wish I could upvote this answer more than once. – Micah Nov 23 '10 at 4:32

Sure you can! You need to change the RDP port on each machine, and port forward different ports to different computers.

To change the port number RDP listens on, edit the registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber on each machine.

  • So I coulnd't set it up like this: -> 192.168.151:3349 (default RDP port)? – Micah Nov 15 '10 at 21:08
  • Based on the source port? It's unlikely, but some routers might allow it. – Fahad Sadah Nov 15 '10 at 21:10
  • I think I get what you're saying. Basically with port forwarding i can only route to a different IP using the same port as the original request came in on. Correct? – Micah Nov 15 '10 at 21:14
  • -1... for ignoring remote services gateway which allows exactly that without port changes. – TomTom Nov 15 '10 at 21:27
  • Ah, I see what you mean. Some routers will allow a connection on an external port to be forwarded to a different internal port (Thomson Speedtouches jump to mind), but not many. What is your router? – Fahad Sadah Nov 16 '10 at 15:27

An easy way is to have the firewall/router port forward various ports to different target machines. No fiddling with Windows ports or having to use a TS Gateway.

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.