sodcalculator

10 Tech How-To

How to Set Up Telegram Proxy on Mobile and Desktop

Guide 10-55177 · Updated · Step by step

This guide walks you through configuring a proxy for Telegram on both mobile (Android and iOS) and desktop (Windows, macOS, and Linux). Using a proxy can help you access Telegram when it is blocked by your network or ISP, and it can also improve connection stability in regions with heavy censorship. You will need a working proxy server address, port, and (if required) username and password. If you don’t have one, you can find free proxy lists online, but be aware that free proxies may be slow or insecure.

What You’ll Need

  • A Telegram account (obviously).
  • A proxy server’s address (IP or hostname) and port number.
  • If the proxy requires authentication, a username and password.
  • For MTProto proxies (Telegram’s own protocol), you may also need a secret key.

Step-by-Step

On Mobile (Android and iOS)

  1. Open Telegram on your phone.
  2. Tap the hamburger menu (three horizontal lines) in the top-left corner (Android) or the Settings tab at the bottom-right (iOS).
  3. Go to Settings > Data and Storage (Android) or Settings > Data and Storage (iOS).
  4. Tap Proxy (or Proxy Settings).
  5. Tap Add Proxy.
  6. Choose the proxy type: MTProto, SOCKS5, or HTTP. If you have an MTProto proxy link (starts with tg://proxy?), you can simply paste it and Telegram will auto-fill the fields.
  7. Enter the Server (hostname or IP), Port, and if applicable, Username, Password, and Secret (for MTProto).
  8. Tap the checkmark (save) in the top-right corner.
  9. Make sure the proxy is enabled (the switch next to it is on). You can also set it as the default by tapping the radio button.

On Desktop (Windows, macOS, Linux)

  1. Open Telegram Desktop.
  2. Click the hamburger menu (three horizontal lines) in the top-left corner.
  3. Go to Settings > Advanced.
  4. Scroll down to the Connection section and click Connection Type (or Proxy Settings).
  5. Select Use custom proxy.
  6. Choose the proxy type: MTProto, SOCKS5, or HTTP.
  7. Fill in the Server, Port, and if required, Username, Password, and Secret.
  8. Click Save (or Apply).
  9. Telegram will immediately try to connect through the proxy. If successful, you will see a green checkmark or a notification.

Common Mistakes

  • Using the wrong proxy type: Make sure you know whether your proxy is SOCKS5, HTTP, or MTProto. Using the wrong type will cause connection failures.
  • Entering the port as a string: The port must be a number (e.g., 1080, 8080). Do not include spaces or colons.
  • Forgetting to enable the proxy: Adding a proxy does not automatically activate it. You must toggle it on.
  • Using a dead proxy: Free proxies often go offline. Test the proxy with another tool or try a different one.
  • Not saving the secret for MTProto: MTProto proxies require a secret key; without it, the connection will fail.

Tips

  • Use an MTProto proxy if you have the option, as it is Telegram’s native protocol and tends to be more stable and faster than SOCKS5 or HTTP.
  • If you are in a region with heavy censorship, consider using a VPN instead of a proxy, as proxies only reroute Telegram traffic and can be detected.
  • For better security, use a private proxy from a trusted provider rather than a public one.
  • You can add multiple proxies and switch between them easily from the same settings menu.
  • If you have a proxy link (e.g., tg://proxy?server=...&port=...&secret=...), you can share it with friends; they just tap it to import.

Troubleshooting

Proxy is enabled but Telegram still won’t connect. Double-check the server address and port for typos. Try pinging the server from your device (if possible). If the proxy requires authentication, make sure you entered the username and password correctly. If it still fails, the proxy may be down; try a different one.

Connection is very slow. Free proxies often have limited bandwidth. Try a different proxy or consider a paid service. Also, check if your internet connection is fast without the proxy.

Telegram says “Proxy error” or “Connection refused”. This usually means the proxy server is not reachable. Verify that the port is open (you can use an online port checker). If you are using a firewall, make sure it is not blocking the proxy port.

MTProto proxy shows “Secret is invalid”. The secret must be exactly 32 characters (hexadecimal) or 64 characters (if it includes a ‘ee’ prefix). Re-copy the secret from your proxy provider.

After enabling the proxy, other apps stop working. Telegram’s proxy only affects Telegram traffic, so other apps should be unaffected. If you are using a system-wide proxy (like in Windows settings), that could affect everything; make sure you only set the proxy inside Telegram.

I can’t find the Proxy settings on desktop. In some versions of Telegram Desktop, the path is Settings > Advanced > Connection Type. If you don’t see it, update Telegram to the latest version.

Frequently Asked Questions

What is the difference between MTProto, SOCKS5, and HTTP proxies?

MTProto is Telegram’s own protocol, designed to be fast and secure. SOCKS5 and HTTP are general-purpose proxies; SOCKS5 handles any traffic, while HTTP is for web traffic. MTProto is usually the best choice for Telegram.

Is using a proxy legal?

In most countries, using a proxy is legal. However, in some regions with strict internet censorship, using a proxy to bypass government blocks may be against local laws. Check your local regulations.

Can I use a free proxy?

Yes, but free proxies are often slow, unreliable, and may log your data. For sensitive activities, use a trusted paid proxy or a VPN.

Will using a proxy hide my IP address from Telegram?

Yes, Telegram will see the proxy server’s IP address instead of yours. However, if you log in with your phone number, Telegram still knows your account.

Can I use a proxy on Telegram Web?

Telegram Web does not have built-in proxy settings. You would need to configure a system-wide proxy in your browser or OS.

How do I remove a proxy?

Go to the same proxy settings menu, tap or click the proxy you want to remove, and select “Delete” or turn off the switch. You can also disable all proxies by selecting “No proxy” or “Use system settings”.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →