# RustDesk New client install or Upgrade.

### Method one AUTO

#### Windows Script AUTO

The below script is for RustDesk Client for **NEW install** or **UPGRADE** or **configuring settings**.

Open a <span style="color: rgb(224, 62, 45);">**Powershell as Administrator**</span> and then copy / paste and run with the below command.

Run in <span style="color: rgb(224, 62, 45);">**Powershell as Administrator :**</span>

```
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression (Invoke-WebRequest -Uri "https://docs.greenhome.stream/attachments/21" -UseBasicP) | Out-Null
```

Done.

---

### Method two MANUAL

#### First install the Rustdesk client from the below official link.

[https://rustdesk.com/download](https://rustdesk.com/download "Official download link")

#### Windows guide setup.

To import the settings for ID/Relay follow the steps below.

##### Step 1

[![rustdesk-win-1.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-1.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-1.png)

##### Step 2

[![rustdesk-win-2.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-2.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-2.png)

##### Step 3

[![rustdesk-win-3.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-3.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-3.png)

##### Step 4

[![rustdesk-win-4.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-4.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-4.png)

##### Step 5

Copy the text below and paste it at the below button where the red arrow show.  
**RustDesk Key**

```
9JiI6ISeltmIsIiI6ISawFmIsISbhVmc0NnLl12bo5WZlJ3Zus2clRGdzVnciojI5FGblJnIsISbhVmc0NnLl12bo5WZlJ3Zus2clRGdzVnciojI0N3boJye
```

[![rustdesk-win-5.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-5.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-5.png)

#### Windows client check server connection.

[![rustdesk-win-check.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-win-check.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-win-check.png)

You are ready.

---

#### Android guide setup.

##### Step 1

[![rustdesk-android-1.jpg](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-android-1.jpg)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-android-1.jpg)

##### Step 2

[![rustdesk-android-2.jpg](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-android-2.jpg)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-android-2.jpg)

##### Step 3

Copy the text below and paste it at the below button where the red arrow show.

```
9JiI6ISeltmIsIiI6ISawFmIsISbhVmc0NnLl12bo5WZlJ3Zus2clRGdzVnciojI5FGblJnIsISbhVmc0NnLl12bo5WZlJ3Zus2clRGdzVnciojI0N3boJye
```

[![rustdesk-android-3.jpg](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-android-3.jpg)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-android-3.jpg)

#### Android client check server connection.

[![rustdesk-android-check.png](https://docs.greenhome.stream/uploads/images/gallery/2025-02/scaled-1680-/rustdesk-android-check.png)](https://docs.greenhome.stream/uploads/images/gallery/2025-02/rustdesk-android-check.png)

### RustDesk ports Allow from local subnet :

For full LAN direct connect (green status), also allow these inbound on target :

- TCP/UDP 21115-21117, 21118-21119 (RustDesk ports).

Use similar PowerShell :

##### Allow TCP Ports

```powershell
New-NetFirewallRule -DisplayName "RustDesk TCP LAN" -Direction Inbound -LocalPort 21115-21119 -Protocol TCP -RemoteAddress LocalSubnet -Action Allow
```

##### Allow UDP Ports

```powershell
New-NetFirewallRule -DisplayName "RustDesk UDP LAN" -Direction Inbound -LocalPort 21115-21119 -Protocol UDP -RemoteAddress LocalSubnet -Action Allow
```

You are ready.

---