Ceate Free Windows RDP Using GitHub and Ngrok (2025)
Remote Desktop Protocol (RDP) is a powerful way to access a Windows machine from anywhere in the world. In this blog, you'll learn how to create a FREE Windows RDP using GitHub and Ngrok without needing a credit card, VPS, or paid hosting service.
⚠️ Disclaimer: This guide is for educational purposes only. Do not use it for any illegal or abusive activities. You are responsible for your own actions.
✅ What You'll Need:
-
A GitHub account (Free)
-
Ngrok account (Free)
-
A device with a browser and internet connection
🛠 Step-by-Step Guide
Step 1: Create a GitHub Account
If you don’t have one, sign up here:
👉 https://github.com
Step 2: Create GitHub Repository
- Enter Name
- Select private
- Click create
- then click Settings
- actons
- secret and variables
- new secret
- name : NGROK_AUTH_TOKEN
- Copy secret from NGROK
Step 3: Configure Ngrok
-
Go to https://ngrok.com and create a free account.
-
After logging in, click on "Your Authtoken" from the dashboard.
-
Copy your Ngrok authtoken.
Paste in Github Secret Block and Save
now click actions
set up work flow yourself
Now Paste Command (Available below)
Copy this complete command
name: CI
on: [push, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: Download
run: Invoke-WebRequest https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-windows-amd64.zip -OutFile ngrok.zip
- name: Extract
run: Expand-Archive ngrok.zip
- name: Auth
run: .\ngrok\ngrok.exe authtoken $Env:NGROK_AUTH_TOKEN
env:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
- name: Enable TS
run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server'-name "fDenyTSConnections" -Value 0
- run: Enable-NetFirewallRule -DisplayGroup "Remote Desktop"
- run: Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1
- run: Set-LocalUser -Name "runneradmin" -Password (ConvertTo-SecureString -AsPlainText "P@ssw0rd!" -Force)
- name: Create Tunnel
run: .\ngrok\ngrok.exe tcp 3389
Step 4:
Click “Commit changes” to save.
Step 5: Run the RDP
-
Go to the "Actions" tab in your GitHub repo.
-
Click the latest workflow named “Cl”.
-
If it’s not already running, click “Run workflow” manually.
-
Wait for 2–3 minutes until the script completes.
Step 6: Get RDP Connection Details
-
After it finishes, click the workflow run
🎯 How to Connect to RDP?
Open Ngrok
Select Endpoints and copy something like this (0.tcp.ngrok.io:12345)
Open Remote Desktop Connection on Windows
-
In Computer, enter:
-
Enter the username and password shown in your GitHub action logs.
USER: runneradmin
PASSWORD:
P@ssw0rd!-
Click Connect!
NICE
ReplyDelete