Faster File Transfers
TG WS Proxy accelerates file uploads and downloads by routing traffic through optimized WebSocket connections to Telegram data centers.
A local SOCKS5 proxy that routes Telegram traffic through WebSocket connections, significantly improving file upload and download speeds. The TG WS Proxy tool provides a seamless solution for optimizing your Telegram experience.
# How TG WS Proxy routes traffic
Telegram Desktop → SOCKS5 (127.0.0.1:1080) → TG WS Proxy
TG WS Proxy → WSS (kws*.web.telegram.org) → Telegram DC
Discover the powerful features that make this WebSocket proxy the ideal solution for enhancing your Telegram Desktop performance.
TG WS Proxy accelerates file uploads and downloads by routing traffic through optimized WebSocket connections to Telegram data centers.
All connections are encrypted using TLS through WebSocket Secure (WSS) protocol, ensuring your data remains private and protected.
When WebSocket connections are unavailable, the proxy automatically switches to direct TCP connections for uninterrupted service.
Simple system tray application with GUI settings editor. Configure port, data centers, and logging with just a few clicks.
For advanced users, TG WS Proxy offers full command-line interface with customizable arguments for port, DC IPs, and verbose logging.
Intelligently routes traffic to the correct Telegram data center by extracting DC ID from MTProto obfuscation init packets.
Understanding the technical architecture behind this Telegram WebSocket proxy solution.
The application creates a local SOCKS5 proxy server on 127.0.0.1:1080. Telegram Desktop connects to this local endpoint.
TG WS Proxy intercepts connections to Telegram IP addresses and extracts the Data Center ID from MTProto obfuscation init packets.
Establishes TLS-encrypted WebSocket connections to the corresponding DC throughkws{N}.web.telegram.org domains.
If WebSocket is unavailable (302 redirect), automatically switches to direct TCP connection for seamless operation.
Get started with TG WS Proxy in minutes. Choose the installation method that works best for you.
Easiest method for Windows users
TgWsProxy.exe from GitHub ReleasesFor developers and advanced users
Install dependencies:
pip install -r requirements.txtRun Windows tray app:
python windows.pyOr use console mode:
python proxy/tg_ws_proxy.py [--port PORT] [--dc-ip DC:IP ...] [-v]Right-click the tray icon and select "Open in Telegram" to automatically configure the proxy settings via tg://socks link.
127.0.0.1 Port: 1080| Argument | Default | Description |
|---|---|---|
| --port | 1080 | SOCKS5 proxy port |
| --dc-ip | 2:149.154.167.220 | Target IP for DC (can specify multiple) |
| -v, --verbose | off | Enable DEBUG logging |
Common questions about TG WS Proxy installation, usage, and troubleshooting.
Third-Party Website: This website (tgwsproxy.org) is an independent third-party resource created for technical documentation and navigation purposes only. It is not affiliated with, endorsed by, or officially connected to Telegram Messenger Inc. or the original project author.
No Warranty: The information provided on this website is for general informational purposes only. We make no representations or warranties of any kind, express or implied, about the completeness, accuracy, reliability, or suitability of the information.
Use at Your Own Risk: Any reliance you place on such information is strictly at your own risk. We shall not be liable for any loss or damage arising from your use of TG WS Proxy or any information on this website.
Trademarks: Telegram is a trademark of Telegram Messenger Inc. All other trademarks and copyrights are the property of their respective owners.