Link to home
Start Free TrialLog in
Avatar of SecurityResourcesInc
SecurityResourcesInc

asked on

Using different ports for Remote Desktop

I'm trying to use other ports other than 3389 for remote desktop.

My plan is it use wan ip xx.xx.xxx.xxx:4000-xxxx for my other remote desktop users.
Avatar of Kirrilian
Kirrilian

You can set this in the registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

http://support.microsoft.com/kb/187623
As a side note, it is a pain to set this on the client's side, you can send them out the connection file or have them connect using command line switches.
Hi there;

 WARNING: The Remote Assistance feature in Windows XP may not work properly if you change the listening port. To change the port that Remote Desktop listens on:
1) Start Registry Editor (Regedt32.exe).
2) Locate the following key in the registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber
3) On the Edit menu, click Modify, click Decimal, type the new port number, and then click OK.
4) Quit Registry Editor.

NOTE: When you try to connect to this computer by using the Remote Desktop connection, you must type the new port.

You need to add this to the default.rdp file for the XP terminal client... Add this line anywhere in the file.
server port:i:your port number
ie server port:i:4000

Best Regards

Avatar of SecurityResourcesInc

ASKER

Thank you for the quick responds

I was more looking for a Firewall soultion rather than configuring clients registry.
The registry entry was for the TS server, not the clients, my second post shows how to get the clients to connect.

You can set your firewall to port forward from an off port such as 4000 to 3389 on your TS server. You didn't state that in your question... ;)

I do this as well, the whole security by obscurity thing but your clients will still have to change the port they connect to.
not quite.

I have a Sonicwall Pro 2040 Enhanced.

I've been able to create a service called Remote Desktop that uses port 3389 and it works as planned.

My goal is to use the same WAN IP address as programed above but to use port 4000. I believe this is called port forwarding. However, I'm slightly confused and the sonicwall Pdf isn't helping.

http://www.sonicwall.com/downloads/Configuring_SonicWALL__Port_Forwarding.pdf

any ideas?
It would be better to state that in the question too...I missed the tags...Though, i learned to change now...lol
Try this one instead and substitute the ports you want to use rather than the VPN ports they are using.

http://www.sonicwall.com/downloads/Running_NetExtender_on_a_Different_TCP_Port.pdf
ASKER CERTIFIED SOLUTION
Avatar of SecurityResourcesInc
SecurityResourcesInc

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial