To use a proxy with WhatsApp, open Settings, then Storage and Data, then Proxy, and enter the address of a WhatsApp proxy server. It has to be a server made for WhatsApp. An ordinary HTTP or SOCKS5 proxy does not work there, including residential proxies, although those do work with WhatsApp Web in a browser.
Which proxy servers WhatsApp accepts
The proxy setting exists for one job: reaching WhatsApp when your network blocks it. The app expects a server that passes its data directly to WhatsApp, which is called TCP forwarding. An HTTP or SOCKS5 proxy first wants to be told where to connect, and the app does not speak that language.
| Where you use WhatsApp | WhatsApp proxy server | HTTP or SOCKS5 proxy |
|---|---|---|
| Phone app, in its proxy setting | Yes | No |
| WhatsApp Web in a browser | No | Yes, through the browser |
| Calls in the phone app | No | No |
Telegram is different, because it accepts SOCKS5 directly. Our guide to using a SOCKS5 proxy in Telegram covers that setup.
Set up a proxy for WhatsApp on your phone
Update WhatsApp first, and have the address of the proxy ready.
- Open Settings. On Android it is in the menu at the top of the Chats tab.
- Tap Storage and Data, then Proxy.
- Tap Set up Proxy and enter the proxy address, either an IP address or a domain name.
- Change the chat port or media port only if the operator gave you different ones. Text uses the chat port. Photos, videos and voice messages use the media port.
- Save. On iPhone, also turn on Use Proxy. WhatsApp shows whether the connection works.
If you receive a proxy as a link, tapping it can fill in these details for you.
Where to find a WhatsApp proxy server
WhatsApp suggests looking for trusted sources that have set one up. Take the word “trusted” seriously. Your messages stay end-to-end encrypted, but whoever runs the server sees your IP address and knows that you use WhatsApp. A server run by someone you know, or by an organization you can name, is safer than an address from a random list.
Run your own WhatsApp proxy server
WhatsApp publishes the proxy server code on GitHub and a ready-made Docker image. You need a server in a place where WhatsApp is not blocked.
docker pull facebook/whatsapp_proxy:latest
docker run -d --restart unless-stopped \
-p 443:443 -p 587:587 \
facebook/whatsapp_proxy:latest
The project recommends exposing only ports 443 and 587 on a public address, which is enough for messages and media. Keep these points in mind:
- Leave 443 as it is. The app uses TLS on that port only, so moving it to another number breaks the connection.
- Keep 8199 private. It shows the server’s statistics, and users do not need it.
- Share it carefully. Anyone who has the address can use the server, and its traffic counts toward your bill.
Use WhatsApp Web through an ordinary proxy
WhatsApp Web is a website, so it uses whatever proxy your browser uses. Set an HTTP or SOCKS5 proxy in the browser, open WhatsApp Web and link it to your phone as usual. Your phone app keeps its own connection.
Use one fixed address instead of a rotating one, since a session that jumps between countries looks suspicious. Our guide to setting up a proxy on iPhone and Android explains the phone’s Wi-Fi proxy, which is separate from the WhatsApp setting.
Proxy or VPN for WhatsApp?
Choose a VPN if you need calls or want to cover every app on the phone. Choose a WhatsApp proxy if VPNs are blocked or you only need messages. WhatsApp recommends both for blocked networks, and reminds you to check the laws of your country first.
If it does not connect
- The status shows an error: check the host for typing mistakes, then ask the operator which ports to use.
- Text works but photos do not: the media port is closed or wrong.
- It worked yesterday: the address may be blocked. Delete it and try another.
- Calls fail: that is expected with a proxy. Turn it off, or use a VPN.