New advertisers: 50% off your first month with code FIRSTMONTHSee slots
reason-machines avatar

Tg Ws Proxy Telegram Socks5

Local SOCKS5 proxy that routes Telegram Desktop traffic over WebSocket to Telegram data centers without external servers.

skills.sh installs
837
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers the local proxy setup: tg-ws-proxy console mode, tray GUIs for Windows, macOS, and Linux, plus AUR, .deb, and systemd install paths
  • Provides CLI flags --port, --host, --dc-ip, and -v, with optional config.json settings for the tray app
  • Falls back to direct TCP when the WebSocket endpoint returns a 302 redirect, so Telegram still connects
  • Designed for users whose Telegram Desktop connections are blocked at the network level and who need a local SOCKS5 endpoint on 127.0.0.1:1080

Install

$ npx -y skills add reason-machines/trending-skills --skill tg-ws-proxy-telegram-socks5 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

TG WS Proxy

Skill by ara.so — Daily 2026 Skills collection.

TG WS Proxy is a local SOCKS5 proxy server for Telegram Desktop that reroutes traffic through WebSocket (WSS) connections to Telegram's Data Centers, bypassing network-level blocking without external servers.

Telegram Desktop → SOCKS5 (127.0.0.1:1080) → TG WS Proxy → WSS → Telegram DC

How It Works

  1. Starts a local SOCKS5 proxy on 127.0.0.1:1080
  2. Intercepts connections to Telegram IP addresses
  3. Extracts DC ID from MTProto obfuscation init packet
  4. Opens a WebSocket (TLS) connection to the matching DC via Telegram domains
  5. Falls back to direct TCP if WebSocket returns a 302 redirect

Installation

From Source (All Platforms)

git clone https://github.com/Flowseal/tg-ws-proxy.git
cd tg-ws-proxy
pip install -e .

Run Console Proxy (No GUI)

tg-ws-proxy

Run with Tray GUI

# Windows
tg-ws-proxy-tray-win

# macOS
tg-ws-proxy-tray-macos

# Linux
tg-ws-proxy-tray-linux

Linux — AUR (Arch-based)

Details

Repository
github.com/reason-machines/trending-skills
Categories
Email & Messaging, CLI & Terminal
First seen
May 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Tg Ws Proxy Telegram Socks5

More Email & Messaging