# Cambiar puerto RDP (Escritorio Remoto) en Windows

### Modificar puerto RDP o Escritorio Remoto de Windows Server 2012

Seleccionar el nuevo puerto RDP. Lo que aquí usaremos es el puerto 22890, a modo de ejemplo. Es a tu total elección utilizar otro, en la medida que sea correcto y no aparezca ocupado como por otro servicio.

Sumar la regla en el Firewall a través del comando que te mostramos a continuación desde CMD o PowerShell:&#x20;

`netsh advfirewall firewall add rule name="RDP Puerto alternativo" dir=in localport="33890" protocol=tcp action=allow`

Cambiar el valor del registro aplicando este comando en PowerShell:

`Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\Terminal*Server\WinStations\RDP-TCP\ -Name PortNumber -Value 33890`

¡Perfecto! Ahora solo debés reiniciar el servidor para luego conectarte con el nuevo puerto.

### Modificar el puerto RDP o Escritorio Remoto de Windows Server 2008 Windows Server 2003

El método es muy parecido, pero la salvedad es que, como algunos comandos no son aceptados por la versiones de Windows Server 2008 o Windows Server 2002, vas a tener que hacer el procedimiento a mano:&#x20;

* Tipear en el buscador del menú Inicio regedit.exe. En caso de que la versión que estás usando no tenga un buscador, simplemente tipear en Ejecutar, regedit.exe.

![](https://lh4.googleusercontent.com/DCBdtQO45lM5P0_t9qOEG3a4CjG3h2pY874gPF7qEGOxEMNXaswQVUpt1T-GuT62tdsBDeS_k5M4R-ChLnhPIqnUUz_N1Qh3lFhg3ZbMyq0mtVmXo_BWPpdBo-UBMl37LqGdIZ5b)

* Identificar esta ruta:

  `HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber`
* Buscar la variable PortNumber, hacer clic derecho y entrar a “Modificar”.

![](https://lh5.googleusercontent.com/j0kaQOWIqhcyGc7JoGW9Rrh1igk_DMZTjM3RRuUwAxaaG3gGpfcaviMUB0ZPzkxeVi5IEuQs4_G8gvKEOTS5E8afQVZZl5ZRY1ac0MIc9PHV_UJ3iaiNWT8Wx-oAxMMzg-vw-1fL)

* En la nueva ventana emergente, optar por la selección “Decimal'', y tipear el puerto al que querés transformar en el campo de texto.&#x20;

![](https://lh3.googleusercontent.com/QylwJysIhKrRsEU5-LJcZvbInfhiFSMjQ31eo9MRW_VKY55lsP1h7eUB4gRHdaBNs8CxpfpN0CzjYcoZTXajSUaC4cQ9SZwNcwEsb3RRmmoqEHRpMuEEkXCrSXhXK3Ao4Sz3hYEE)

* Retornar al menú Inicio y abrir el Firewall de Windows.&#x20;

![](https://lh6.googleusercontent.com/MkmV64Y1-CcP1Nj95TULLu0Lx_dde6FNw8no6Hvmz4W8MKv1FVMKNbjP4oBInE9Q-m5qecypMRX7hQbM9mwmlQZdttS3SZegAQKLxk6za1ou91ldMsXXbWiMzBJ7ipgA_FzE_7cQ)

* Ir a configuración avanzada&#x20;

![](https://lh3.googleusercontent.com/XPdQWKKICc3lA7DWwC4VemqtS8FPUsb7IlXHbt6ChXKBY-2Yk1TyVqjoBVKnIAbqOJ1dPQ54irIoeSSUz4Ls3mhv9-3YbwyZUDdYbUm00hT1FctjLKYCCu2KNzf1Dry3wcvMg7SK)

* Ir a Reglas de entrada&#x20;

![](https://lh3.googleusercontent.com/sR9MpTMgGfMXhElzceK6XRuyKdkBGPUcF55gdWoTtHXTjEAvDUSKoXftmGp-6RSLp62TYwuBqofxyoC4sZnDyYaZXMhHo_WlpoxjH8Um2ZWscaXxosu4bivUYQhNnKxOFCrpdQhp)

* Hacer click  en Nueva regla en la parte derecha de la pantalla.<br>

![](https://lh6.googleusercontent.com/TGS-9nAD7ik5zNJpRMpG-XPVpEEoSPgy7Hj_b7pDTCVSHi-mXz-FtgFLouYH-kqPIxDNWhIdnMF-NMLiSd2SP5Hbxgv3O-7jjRGTbvDGjCq_JrQ909mdAj9NxrNR-PRVRRny9Kp6)

* En la nueva ventana emergente, presionar “Puerto” y seleccionar el botón “Siguiente”.

![](https://lh6.googleusercontent.com/TX_mjxZhgb2nDMk2DDAZFuMNd7t1wgxy2XU07qL85ERWXILjoxQ-WdqOczg3jJMs3ICaSZrrok4q64558_vQJNVLXiW8aVqxbqooxbOUM-5jEnFrdYsz76jDcK91gVFGcHYSaK_Q)

* Seleccionar TCP, especificar puerto en el campo de texto con el nombre de Puertos locales específicos y entonces seleccionar “Siguiente”. \
  \
  AYUDA. Atención en este paso a lo que tipeás. Porque de hacerlo erróneamente no te será posible conectar nuevamente con tu Servidor y precisarás de nuestra ayuda

![](https://lh6.googleusercontent.com/Bz8LHcIKk2lkHXvWpuoAnIWL-3bjWkPOdNbATcXoM-UNDUGskiWtT6hgWvSe7sTfbGmDk30gOlGAr-532-nJwVq3WtYvLdddti1v08n1ur4UrpI3vT8pDYYv4LDFiOnLCalKv-As)

* Elegir la opción “Permitir” y después presionar sobre “Siguiente”, nuevamente

![](https://lh4.googleusercontent.com/X12pmJw8L7cgI3vZ_DLVv8M4gnEFwB9_WpfMzcEqE5YOXcy6a5-Tqt8JVrlA-HrJPSoOaijJeTAU0--IGTkMPitmTAiw1jIHt-BEynPtpMXelSmwHGnEAwZ8Ed_CkoXftBRWA-6L)

* En este momento elegir para qué redes esta regla será utilizable. Ir a  “Siguiente” sin hacer ningún cambio.

![](https://lh5.googleusercontent.com/TvAVUJZPQQuKHjEXNm1JeI0jHdJFhlmGEigYyTv8Nfkx43ZI4sBzho4lHAaB8mR-uwTdR5vm8FAU5g7LAcNil0j5TlpWCMS-r0lzn9fhJzEkn8GqyarBex92qkBnTNYrprKXHxnp)

* Tipear un nombre para la regla y un detalle, si así lo querés. Luego, hacer click en “Finalizar”.

![](https://lh3.googleusercontent.com/p7vYkjBVv3pMsoHlUQf1xIIUUS-Ov-jD6qwuGBWPKRSQyimMgNyAK_dzH36hykms92RMka9VBsPqZHe1OgfywQ9hZqec6S20R-R3--o-c1Omej-QYof5-G2WwC5Xz5p6S6gvTtJ4)

¡Perfecto! Sólo resta reiniciar tu Servidor y listo. Tu puerto de RDP o Escritorio Remoto de Windows ya ha sido cambiado.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ayuda.latincloud.com/cloud-vps/windows/cambiar-puerto-rdp-escritorio-remoto-en-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
