← All articles

How to

How to Set Up a Proxy in Telegram: SOCKS5 vs MTProto, and Which One to Use

Alex R. · September 4, 2026 · 5 min read


Telegram is one of the few mainstream apps with proxy support built into its settings, and it supports two kinds: standard SOCKS5 and Telegram's own MTProto proxies. People reach for them for different reasons: a network that blocks Telegram, an account that should appear from one particular country, or simply not handing their home IP to every server they talk to. This guide explains how the two differ, walks through the setup on each platform, and covers the one thing that gets accounts flagged: an IP that will not sit still.

SOCKS5 vs MTProto: what you are choosing between

SOCKS5MTProto
What it isGeneral-purpose proxy protocol used by everything from browsers to torrent clientsTelegram-specific proxy protocol built into Telegram's transport
AuthenticationUsername and passwordA shared "secret" instead of credentials
Who provides itAny commercial proxy provider; also self-hosted via SSHMostly volunteers and public lists; some promote a sponsored channel in your chat list
Traffic appearanceRecognisable as SOCKS5 to a network operatorDesigned to look like random traffic, harder for networks to identify
Choice of exit countryYes, you pick the proxy locationWhatever the server happens to be
Works for callsYes, with the calls toggleYes, with the calls toggle

The practical rule: MTProto is for getting Telegram to connect at all on a network that blocks it; SOCKS5 is for controlling where Telegram thinks you are and who you trust with your traffic. If you are paying a provider, you are using SOCKS5. Every SpyderProxy product exposes a SOCKS5 endpoint alongside HTTP(S), and the SOCKS5 explainer covers the protocol itself if you want the background.

What you need before you start

For SOCKS5: a hostname or IP, a port, and usually a username and password from your provider. For MTProto: a server, a port and a secret, most often delivered as a link. Telegram understands proxy links directly, in the form tg://socks?server=HOST&port=PORT&user=USER&pass=PASS for SOCKS5 and tg://proxy?server=HOST&port=PORT&secret=SECRET for MTProto. Tapping a link like that opens Telegram with the fields prefilled and a button to enable it, which is the fastest setup on a phone.

Android

  1. Open Telegram and go to Settings, then Data and Storage.
  2. Scroll to Proxy Settings and tap Add Proxy.
  3. Choose SOCKS5 or MTProto.
  4. Enter the server, port and either the username and password or the secret, then tap the tick to save.
  5. Turn on Use Proxy. Telegram shows the proxy as Connected with a ping time when it works.
  6. Optionally enable Use Proxy for Calls. Off by default; without it, voice and video calls go direct.

iPhone and iPad

  1. Open Settings inside Telegram, then Data and Storage.
  2. Tap Proxy, then Add Proxy.
  3. Pick SOCKS5 or MTProto, fill in the details and save.
  4. Toggle Use Proxy on. The list shows connection status per proxy, so you can keep several saved and switch.

Windows, macOS and Linux desktop

  1. Open Settings, then Advanced.
  2. Under Network and Proxy, click Connection type.
  3. Select Use custom proxy, then Add proxy.
  4. Choose SOCKS5 (or HTTP, which the desktop app also supports, or MTProto), enter the details, and save.
  5. Desktop can hold a list of proxies and switch automatically when one fails, which is useful if you keep a backup.

Note that the proxy configured here applies only to Telegram. Your browser and the rest of the system are unaffected, which is usually what you want.

Checking it works

Telegram's own status line ("Connected", with a ping) confirms the tunnel is up. To confirm what Telegram's servers now see, look at the sessions list under Settings, then Devices: the current session shows the IP and the location Telegram has resolved for it. If it shows your proxy's location, you are done. If you also want to check the exit address independently, run a request through the same proxy with a tool like the proxy checker and compare.

The mistake that gets accounts flagged: a moving IP

This is the part most setup guides skip. Telegram, like every messaging platform, watches for sessions that behave like a stolen account. An account that logs in from one city and then, ten minutes later, appears in another, and then a third, matches that pattern exactly. That is what happens if you point Telegram at a rotating proxy that changes the exit IP on every connection: expect repeated code prompts, "new login" alerts, and in the worst case a temporary restriction.

The fix is to give Telegram one address and keep it. Two ways to do that:

Whatever you pick, do not share the same IP across a stack of unrelated accounts. The proxy is meant to make one account look like one consistent person; ten accounts behind one address make all ten look linked.

Troubleshooting

A word on free proxy lists

Searches for free SOCKS5 or MTProto proxies for Telegram are common, and the servers exist. Understand what you get: an operator you cannot identify who sees your IP and your connection pattern, a server that may vanish tomorrow, and on MTProto, a sponsored channel pinned into your app. Telegram's transport encryption keeps the message contents private either way, so the risk is metadata and reliability, not eavesdropping. For an account that matters, that is a poor trade for saving a few dollars. If you use a free list anyway, read how to use a free proxy list safely first.

Frequently asked questions

Which is better for Telegram, SOCKS5 or MTProto?

SOCKS5 if you are buying a proxy from a provider: it supports a username and password, works with every commercial proxy product, and lets you choose the exit country. MTProto is Telegram's own protocol, mostly distributed as free public servers that inject a sponsored channel; it is convenient but you know nothing about who runs it.

Does a Telegram proxy affect other apps?

No. A proxy set inside Telegram applies only to Telegram's own traffic, including calls if you enable that option. Your browser and other apps keep using your normal connection. For a system-wide setup you would configure the proxy at the operating system level instead.

Why does Telegram keep asking me to log in again when I use a proxy?

Because the exit IP keeps changing. A rotating proxy that hands you a new address every few minutes looks like your account moving between cities, which is what an account takeover looks like. Use a sticky session or a static IP so Telegram sees one consistent location.

Are free SOCKS5 proxies safe for Telegram?

Treat them as public infrastructure run by strangers. Telegram's own encryption protects message contents, but a free proxy operator still sees your IP, your connection times and the fact that you use Telegram, and free servers die without notice. For anything tied to a real account, pay for a proxy with authentication.

Can I use a residential or mobile proxy with Telegram?

Yes, over SOCKS5. Residential and mobile IPs are useful when you want Telegram to see you in a specific country consistently, for example when managing a business account for that market. Pick a sticky or static option rather than per-request rotation.

Need one stable IP for Telegram?

See static residential ↗Start now ↗