License
MIT License
Independent Guide
TG WS Proxy is a local SOCKS5 proxy. It routes Telegram DC traffic through WSS (`kws*.web.telegram.org`) and falls back to direct TCP when needed.
Disclaimer: this site is independent and not affiliated with Telegram or the project maintainers.
MIT License
GitHub Actions + PyInstaller
v1.2.1 (2026-03-22)
Telegram Desktop
-> SOCKS5 127.0.0.1:1080
-> TG WS Proxy
-> WSS kwsN.web.telegram.org (/apiws)
-> Telegram DC
Windows tray GUI, macOS app package, Linux package, and CLI mode are available.
Telegram IP ranges are detected, with separate paths for DC and media/non-media traffic.
Supports --port and multiple --dc-ip entries for network-specific tuning.
Connection pooling, cooldown handling, and automatic fallback reduce reconnect jitter.
Get `TgWsProxy_windows.exe`, `TgWsProxy_macos_universal.dmg`, or `TgWsProxy_linux_amd64.deb` from Releases.
Default listener is 127.0.0.1:1080. Desktop builds provide tray controls and logs.
Server 127.0.0.1, port 1080, and leave username/password empty.
tg-ws-proxy --port 1080 \
--dc-ip 2:149.154.167.220 \
--dc-ip 4:149.154.167.220 -v
A VPN option for users who need additional privacy and cross-region access tools.
Disclosure: This section may contain affiliate links. If you buy through these links, we may earn a commission at no extra cost to you.
The mainline project is focused on Telegram Desktop. Android usage exists in community experiments (Termux/ports), but behavior may vary by device and network.
A maintainer-confirmed approach for local networks: run proxy host as 0.0.0.0 on your PC, then set your phone Telegram SOCKS to the PC LAN IP and port.
One frequent community symptom is \"chat works, media fails\". A commonly shared workaround is testing additional DC mapping such as `203:149.154.167.220`.
For cross-network usage, you would need public IP and port forwarding. Maintainer guidance warns this is generally not the recommended default path for SOCKS.
This is a partial optimization approach. Results depend on routes, region, ISP, and Telegram-side conditions.
No. It runs as a local process and forwards traffic to Telegram domains and nodes.
The README mentions possible false positives. Download from official Releases and verify files yourself.
It works as a local traffic proxy and does not change your credentials or Telegram authentication flow.
It includes runtime logs for connection and debugging status. Treat logs as sensitive operational data.
The project is primarily designed for Telegram Desktop workflows.