How to Configure the Ports of Your Remote Desktop
Expose the ports your applications need with a firewall inbound rule, and reduce the service's exposure.
The usual way to access Remote Desktop is through HTML5 over port 443/TCP, encrypted and compatible with modern browsers on Windows, iOS, and GNU/Linux.
Even so, sometimes you need to publish other ports so that certain applications work. This guide shows you how to create the inbound rule to do so, while keeping service exposure under control.
👍 What you get
An inbound rule that publishes the port your application needs, with the source and destination limited so you don't open more than necessary.
Before you begin
Access the administration panel at admin.plenit.com with permissions on the environment.
Have the Remote Desktop environment deployed. If you don't have it yet, set it up with the Remote Desktop Quick Start.
🚧 Caution with port 3389
Port 3389/TCP (RDP) is one of the first ports scanned in an attack. Avoid exposing it openly to the internet: if you need RDP, reach it through a VPN and restrict the source with firewall rules. Publish only the ports that your applications truly require.
Step 1. Go to the environment firewall
In admin.plenit.com, go to Cloud Services → Remote Desktop and enter the environment subscription. Open the tab Servers and scroll down to Firewall — Inbound rules, where you can see existing rules and create new ones.

📘 Also during deployment
You can create the rule when deploying the service or later by editing it. If you're in the deployment flow, you're already in this configuration and can skip the access step.
Step 2. Create the inbound rule
Click Create new inbound rule and fill in the fields with the values your application requires.

Network and source:
Network: the network you are working on.
Source: select IP or Network. Check Any IP to allow access from any source, or enter a IP or a range to limit it.
Firewall (public entry):
Protocol: TCP or UDP, depending on the communication.
public IP: the public IP through which access will be made.
Public Port: the public port you are exposing.
Server (internal destination):
Private IP: the private IP of the destination server.
Private Port: the internal port to which traffic is forwarded.
🚧 Restrict the source whenever you can
"Any IP" opens the port to the entire internet. If you know where the client will connect from, limit the source to its IP or range: that's the difference between publishing a service and exposing it.
When you have filled in the fields, click Continue to save the rule.
Step 3. Verify that the rule was applied
Go back to Firewall — Inbound rules and check that the new rule appears in the list with the network, source, protocol, public IP, and ports you defined.

Conclusion
Publishing a port in Remote Desktop means creating an inbound rule that connects a public port with the internal server and port.
The key is not just opening the port, but doing it carefully: publish only the ones your applications need, restrict the source when you know where the client connects from, and keep RDP's 3389 off the internet by reaching it through a VPN.
That way, you provide the service without expanding the attack surface more than necessary.
Next steps
Protect administrative access with a remote access VPN.
Connect the environment to the client's headquarters through site-to-site VPN.
Associate users with an existing domain in How to associate a Remote Desktop user with a domain user.
Last updated
Was this helpful?

