Change RDC Port

Posted on 2006-05-09
Last Modified: 2010-04-18
My client has 2 2003 server boxes behind a firewall and I need to get to both of them over the internet. I'm trying to change the port RDC uses on one of the servers from the default of 3389. I go into regedit and change the port to, say, 3391, open up the new port in the router and try to connect using <ip address>:new port # and it won't connect. If I take out
the :port# and reset the router to use 3389, it works? I go back to regedit
and the port shows it should be listening on 3391?
Any ideas? What am I missing? Do I have to re-boot the server?


Question by:crooksb
    LVL 95

    Accepted Solution

    I assume you modified the firewall to allow 3391, right?

    I never like changing the port in the registry - then on the LAN you need to remember to do that as well. I would instead suggest you keep your network secure and put in a VPN - even a Windows based VPN should give you RDP access without issue.  Failing that, I'd configure the router/firewall to essentially port map - have the firewall/router accept the request on 3391 and talk to the server at 3389.
    LVL 3

    Assisted Solution

    You may be editing the Registry in the wrong area.  To change the port on the server; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
    Control\Terminal Server\WinStations\RDP-Tcp, find the "PortNumber" subkey and modify 00000D3D (hex for 3389).  Remember your value has to be a correct hex value.

    Also, don't forget to change the settings on your XP workstation:

    Also, check out this post:

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now