Skip to content

Updated

WhatsApp IP Address and Port:
What to Allow on a Firewall

  1. We found no official WhatsApp page that lists server IP addresses.
  2. The official WhatsApp proxy project does name ports: the primary ones can be 80, 443 or 5222, the client tries 443 by default, and media goes to *.whatsapp.net.
  3. So write the firewall rule as outbound TCP on those ports plus the hostname, and test it, instead of maintaining an address list. Behind a proxy, the firewall only sees your connection to the proxy port.

Check it right after buyingExample output

curl -x http://USER:PASS@HOST:PORT https://ipinfo.io/json

ip
203.0.113.24
country
US
Matches the country you picked
Day 15
203.0.113.24
Same address for the whole term
Example addresses (203.0.113.0/24), not real exits
01 / 09What is known, and what is not

Which ports to open for WhatsApp, why an IP list is the wrong tool, and what your firewall sees when WhatsApp runs through a proxy.

What is known, and what is not

Searching for "WhatsApp server IP address list" mostly returns forum posts and company blogs. We could not find an official WhatsApp page that publishes server addresses, so we do not print a list here: a list nobody keeps up to date is how a rule that worked last year stops working.

What is documented comes from WhatsApp's own open-source proxy project. It says the client connects to port 443 by default, that the primary ports can be 80, 443 or 5222, and that media goes to *.whatsapp.net. Forum lists of extra ports for voice and video calls differ from each other and we could not check them against an official page, so we leave them out. If chats work but calls do not, test on another network before opening more ports.

Ports named in the official WhatsApp proxy project

Ports named in the official WhatsApp proxy project
ItemWhat the project saysWhat to do in a rule
443Encrypted web traffic; the client uses it by default and runs TLS on itAllow outbound TCP 443 first
5222Jabber-protocol traffic, described as the WhatsApp defaultAllow outbound TCP 5222 if 443 alone does not work
80Standard web traffic (HTTP)Allow outbound TCP 80 if the network is restrictive
587 / 7777*.whatsapp.net traffic including media, on the proxy serverRelevant if you run your own WhatsApp proxy; clients need the *.whatsapp.net hostname allowed

Source: github.com/WhatsApp/proxy README and FAQ, read on 6 December 2026. The "What to do" column is our reading of those ports, not a statement from WhatsApp.

Allow by hostname, not by IP

If your firewall or web filter can match names, allow *.whatsapp.net and test chats, photos and voice notes. The official project ties media traffic to that name, so a rule that opens only the chat ports can let text through and still fail on pictures.

If your device can only match IP addresses, accept that the rule needs a recheck whenever something stops working, and record the date you wrote it. A static IP rule is a snapshot, not a guarantee.

Behind a proxy: what the firewall sees

When WhatsApp traffic goes through an HTTP or SOCKS5 proxy set at the device or app level, the firewall on your side sees one connection: from your device to the proxy host and port (2222 for HTTP, 3333 for SOCKS5 on Proxy302). It does not need WhatsApp's addresses for that path; the proxy reaches WhatsApp from its own side. So the rule to write is "allow outbound TCP to the proxy HOST and PORT".

Do not confuse this with the proxy field inside the WhatsApp app. The official project says WhatsApp supports only TCP proxying and does not run through an HTTP proxy as an intermediary, so that field is meant for WhatsApp proxy servers. For an ordinary proxy login, set the proxy on the phone or computer instead.

Check that WhatsApp can connect, in 5 steps

  1. Step 1: Test without the proxy

    On the same network, open WhatsApp with no proxy. If it works, the network allows WhatsApp and the problem is in the proxy path.

    Expected result Chats load and a photo sends.

  2. Step 2: Test port 443 from the machine

    Run command 1 in the code block below. If it cannot connect, outbound 443 is blocked on that network.

    Expected result A "succeeded" or "open" line.

  3. Step 3: Open 5222 and 80 only if needed

    Add outbound TCP 5222, then 80, one at a time, and retest after each. Stop at the first change that fixes it.

  4. Step 4: Test the proxy itself

    Run command 2 in the code block below with the HOST, PORT and login from My assets. A status code in the output means the proxy path works; the timeout and connection-refused cases are covered in the connection failed guide.

  5. Step 5: Keep one exit per account

    Once it connects, avoid switching the exit IP of a WhatsApp account from day to day. The account guide explains what to choose.

Two test commands

# Command 1: can this machine open outbound TCP 443 to WhatsApp Web?
nc -vz web.whatsapp.com 443

# Command 2: does the proxy path work? Prints an HTTP status code.
curl -sS -m 20 -o /dev/null -w "%{http_code}\n" -x http://LOGIN:PASSWORD@HOST:PORT https://web.whatsapp.com

Example only: replace LOGIN, PASSWORD, HOST and PORT with the values in My assets. On Windows PowerShell use Test-NetConnection web.whatsapp.com -Port 443 and curl.exe.

With Proxy302

For a WhatsApp account that you log in to every day, a static ISP IP in the country where you use the number keeps the exit steady. A static ISP IP costs US$0.50 for 1 day and US$7.99 for 30 days, about US$0.27 a day (7.99 ÷ 30), the same in every country. Which countries are in stock is shown on the order page. There is no free trial; the smallest purchase is one IP for one day.

Gateway ports are 2222 for HTTP and 3333 for SOCKS5. An IP is only an address: it does not decide what WhatsApp does with an account, and no IP guarantees an account is never restricted.

WhatsApp IP and port questions

What ports does WhatsApp use?

The official WhatsApp proxy project says the client connects to 443 by default and that the primary ports can be 80, 443 or 5222. We found no official list for calling ports.

Does WhatsApp publish its server IP addresses?

We found no official page that does. The official project describes ports and the *.whatsapp.net name instead, so a name-based rule is safer than an address list.

Why do messages work but photos fail?

The official project ties media to *.whatsapp.net. If a rule opens only the chat ports or only some addresses, text can pass while media fails. Allow the hostname and retest.

Can I put a SOCKS5 or HTTP proxy in the WhatsApp app's proxy field?

The official project says WhatsApp supports only TCP proxying and not an HTTP proxy as an intermediary, so that field is for WhatsApp proxy servers. Set an ordinary proxy on the phone or computer.

What should the firewall allow when I use a proxy?

Outbound TCP from your device to the proxy HOST and PORT. The proxy then connects to WhatsApp from its own side.

Further reading

Setup guides Proxy302 publishes on GitHub on the same topic:

Reference links

3
  1. WhatsApp proxy project: README (github.com/WhatsApp/proxy)

    Official documentation · Confirmed on:

    Read on 6 December 2026: the proxy container maps ports 80, 443, 5222, 587 or 7777, 8080, 8443, 8222 and 8199; 587 or 7777 is described as "*.whatsapp.net traffic including media"; on adverse networks the project recommends exposing only 443 and 587 on the proxy endpoint.

    This describes the WhatsApp proxy server project, not a full list of what the apps need for calls.

  2. WhatsApp proxy project: FAQ

    Official documentation · Confirmed on:

    Read on 6 December 2026: the client connects to port 443 by default; "The primary ports WhatsApp uses can be 80, 443, or 5222"; port 443 on the proxy runs TLS; ports 80 and 5222 can be remapped; WhatsApp supports only TCP proxying and does not run through an HTTP proxy as an intermediary. The page names no server IP addresses.

  3. Proxy302 product facts and price list

    Product observation · Confirmed on:

    Static ISP per-IP lease prices (US$0.50 for 1 day, US$7.99 for 30 days), gateway ports (HTTP 2222, SOCKS5 3333) and no free trial, read from the product facts file on 6 December 2026.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.