Skip to content

Commit 7925eec

Browse files
committed
enable-rdp.ps1 support internal IP addresses 10.0.x.x
1 parent 549f11f commit 7925eec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/enable-rdp.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ if($ip.StartsWith('172.24.')) {
4646
} elseif ($ip.StartsWith('192.168.') -or $ip.StartsWith('10.240.')) {
4747
# new environment - behind NAT
4848
$port = 33800 + ($ip.split('.')[2] - 0) * 256 + $ip.split('.')[3]
49+
} elseif ($ip.StartsWith('10.0.')) {
50+
$port = 33800 + ($ip.split('.')[2] - 0) * 256 + $ip.split('.')[3]
4951
}
5052

5153
# get external IP

0 commit comments

Comments
 (0)