Skip to content

Commit 5aee404

Browse files
Merge pull request #216138 from dknappettmsft/avd-rdp-shortpath-diagram-correction
AVD RDP Shortpath diagram correction
2 parents c35f2c3 + d40e7a9 commit 5aee404

File tree

3 files changed

+1164
-638
lines changed

3 files changed

+1164
-638
lines changed

articles/virtual-desktop/configure-rdp-shortpath-limit-ports-public-networks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.author: daknappe
1010

1111
By default, RDP Shortpath for public networks uses an ephemeral port range of 49152 to 65535 to establish a direct path between server and client. However, you may want to configure your session hosts to use a smaller, predictable port range.
1212

13-
You can specify a smaller default range of ports 38300 to 39299 by configuring the `ICEEnableClientPortRange` registry value your session hosts, but in addition you can also specify the ports you want to use. When enabled on your session hosts, the Remote Desktop client will randomly select the port from the range you specify for every connection. If this range is exhausted, clients will fall back to using the default port range (49154-65535).
13+
You can set a smaller default range of ports 38300 to 39299, or you can specify your own port range to use. When enabled on your session hosts, the Remote Desktop client will randomly select the port from the range you specify for every connection. If this range is exhausted, clients will fall back to using the default port range (49152-65535).
1414

1515
When choosing the base and pool size, consider the number of ports you choose. The range must be between 1024 and 49151, after which the ephemeral port range begins.
1616

@@ -21,13 +21,13 @@ When choosing the base and pool size, consider the number of ports you choose. T
2121

2222
## Enable a limited port range
2323

24-
1. To enable a limited port range when using RDP Shortpath for public networks, open an elevated PowerShell prompt on your session hosts and run the following command to add the required registry value:
24+
1. To enable a limited port range when using RDP Shortpath for public networks, open PowerShell as an administrator on your session hosts and run the following command to add the required registry value. This will change the default port range to the smaller default range of ports 38300 to 39299.
2525

2626
```powershell
2727
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server" -Name ICEEnableClientPortRange -PropertyType DWORD -Value 1
2828
```
2929

30-
2. To further specify the port range to use, open an elevated PowerShell prompt on your session hosts and run the following commands, where the value for `ICEClientPortBase` is the start of the range, and `ICEClientPortRange` is the number of ports to use from the start of the range. For example, if you select 25000 as a port base and 1000 as pool size, the upper bound will be 25999.
30+
2. Once you have enabled a limited port range to be set, you can further specify the port range to use. Open PowerShell as an administrator on your session hosts and run the following commands, where the value for `ICEClientPortBase` is the start of the range, and `ICEClientPortRange` is the number of ports to use from the start of the range. For example, if you select 25000 as a port base and 1000 as pool size, the upper bound will be 25999.
3131

3232
```powershell
3333
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" -Name ICEClientPortBase -PropertyType DWORD -Value 25000

0 commit comments

Comments
 (0)