Secure RDP with Custom Port & Firewall Setup Guide
AlgoVPS Team · · 3 min read
More in Troubleshooting
- Resolve VPS Login Issues: Credential & Password Fixes
- Navigate the AlgoVPS Affiliate Dashboard Easily
- Resolve VPS RDP License Issues Quickly and Easily
- Fix VPS Timezone Sync for Accurate Trading Time
- Resolve NT8 Lagging and Frozen Chart Issues Easily
- Prevent MT4/MT5 Crashes During Backtesting on VPS
- Save and Load Workspaces in NinjaTrader Easily
- Efficiently Repair NinjaTrader 8 on VPS
- Resolve Market Data Issues in NinjaTrader 8.1
- VPS Deployment Time for AlgoVPS Explained
- Effortless Remote Support with AnyDesk & TeamViewer
- VPS vs VPN: Key Differences for Traders Explained
- Secure RDP with Custom Port & Firewall Setup Guide
- Monitor Network Events in Windows Event Logs
- Enable MFA for Secure AlgoVPS Remote Access
- Top Trading Platforms Supported by AlgoVPS Hosting
- Using Microphone and Camera on VPS for Trading
- Resolve Windows Password Expiry on VPS Easily
- Comprehensive Guide to AlgoVPS Server Backups
- How to Change Server Time Zone in AlgoVPS Easily
- Setup FTP Server on VPS for Algo Trading
- Keep RDP Session Alive on AlgoVPS: Step-by-Step Guide
- Restart Your VPS Server for Algo Trading Easily
- Manage Your AlgoVPS Server via User Portal
- Disable Automatic Updates on Windows VPS
- Fix OBS Stream Issues Post-RDP Closure: Step-by-Step
- Cancel VPS Hosting Service: Step-by-Step Guide
- Troubleshoot VPS Freezes in Algo Trading Easily
- Securely Backup and Restore Windows Registry
- Select Monitors for Remote Desktop Sessions Easily
- Update Payment Details on AlgoVPS Easily
- Check Network Status on Windows Server 2025 VPS
How to Set Up an RDP Custom Port and Configure the Firewall
Setting up a custom Remote Desktop Protocol (RDP) port and configuring your firewall are crucial steps for enhancing the Security of your VPS hosting environment. Follow this comprehensive guide to adjust your RDP settings and ensure your firewall is correctly configured.
Step 1: Access Windows Defender Firewall
- Open Windows Defender Firewall: Begin by searching for Windows Defender Firewall in the Windows Start menu. This tool will allow you to manage your firewall settings and ensure that your VPS is protected against unauthorized access.
Step 2: Modify the RDP Port
-
Open the Registry Editor: Press
Win + Rto open the Run dialog box, typeregedit, and press Enter. -
Navigate to the RDP Port Key: In the Registry Editor, locate the following registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp -
Edit the Port Number: Double-click on the PortNumber entry. Select Decimal and enter your new port number, ensuring it is not in use by another service and is outside the range of common ports (between 49152 and 65535 is recommended).
-
Save Changes: Click 'OK' and close the Registry Editor.
Step 3: Update Firewall Rules
- Add a New Inbound Rule: In the Windows Defender Firewall window, click on Advanced settings. Select Inbound Rules on the left pane, then click New Rule.
- Select Rule Type: Choose Port and click Next.
- Specify Port and Protocol: Select TCP and enter your new RDP port number in the Specific local ports field. Click Next.
- Allow the Connection: Choose Allow the connection and click Next.
- Specify When the Rule Applies: Select the appropriate network profiles (Domain, Private, Public) where the rule should apply, then click Next.
- Name the Rule: Provide a name, such as "Custom RDP Port", and click Finish.
Step 4: Test the Configuration
- Restart the Remote Desktop Services: Go to Services via the Windows Start menu and restart the Remote Desktop Services to apply the changes.
- Verify Connection: Attempt to connect to your VPS using the new RDP port to ensure everything is configured correctly.
Conclusion
By following these steps, you have now set up a custom RDP port and configured your firewall to enhance the security of your VPS. Regularly reviewing and updating your security settings is recommended to keep your VPS hosting environment secure.
Note: Remember to update any firewall configurations on your local network to allow traffic on the new RDP port.
For further assistance, please refer to our support page or contact our helpdesk.