2

Update question about whatsapp ports:

According to official facebook:

5222
443

According to screwloose:

TCP: 4244,5222,5223,5228,5242
TCP/UDP: 50318,59234
UDP: 3478,45395

According to quora:

TCP Ports; 80, 443, 4244, 5222, 5223, 5228, 5242, 50318, 59234
UDP Ports: 3478, 45395, 50318, 59234

According to user github:

TCP = 80, 443, 4244, 5060, 5061, 5222, 5223, 5228, 5282
UDP = 5060-5061, 5242, 9785, 40000-60000

According to netify:

TCP 5349
UDP 3478

According to "someone on the internet":

TCP 4244:5242

as I see it, there is no unification of criteria.

Question: What are the real TCP/UDP ports used by WhatsApp (sending/receiving messages and voice/video calls)

4
  • Again, what are you talking about? I never said I disliked your firewall rules. I certainly did not say you should remove them. You can read what I actually said above. I asked you for more information, not less, and you inexplicably started removing relevant information from your post and leaving irrelevant information up. Commented Feb 2, 2021 at 23:56
  • @MichaelHampton Yes, you did it. You called my rules "bizarre". But I am not offended by that. I just want my question to be clear, that's why I deleted them
    – acgbox
    Commented Feb 2, 2021 at 23:58
  • 2
    What is your real question, then? If you don't want to get whatsapp working, why even mention that it is blocked? You can delete that too, because it is also irrelevant. Commented Feb 3, 2021 at 0:00
  • Run whatsapp and do a tcpdump to analyze outbound traffic and analyze it, you will see the ports it uses.
    – Ace
    Commented Jul 16, 2022 at 17:29

3 Answers 3

4

Squid is a proxy, not a firewall.

Even if you could proxy non-web traffic through Squid, there is no way to tell WhatsApp to use your proxy.

You need to allow that traffic through your firewall.

5
  • The firewall is supposed to send the traffic to the squid port. That is not my question. My question is what are the whatsapp ports
    – acgbox
    Commented Feb 2, 2021 at 23:23
  • You can't use Squid to proxy non-web protocols. As long as WhatsApp is sending HTTP/HTTPS requests, they can be made to work through Squid (if it's configured in transparent mode and doesn't require authentication). But everything else will just not work.
    – Massimo
    Commented Feb 2, 2021 at 23:32
  • @ajcg I thought your question was: Why is whatsapp blocked? But you deleted everything relevant to that from your question and left in all this irrelevant squid stuff. Commented Feb 2, 2021 at 23:33
  • @MichaelHampton Please. My question is what are the whatsapp ports (TCP/UDP), the rest is irrelevant
    – acgbox
    Commented Feb 2, 2021 at 23:41
  • 1
    @ajcg You already know the port numbers! Commented Feb 2, 2021 at 23:41
3

I use a transparent proxy .. which blocked my whatsapp calls ... the problem was solved by releasing the UDP / 3478 port in the firewall

0

Set Up and Debug Your Network https://developers.facebook.com/docs/whatsapp/guides/network-requirements/

this the official doc for network requirements probably that will put you on the right track jh

1
  • Whilst this may theoretically answer the question, please provide context around links so others will have some idea what it is and why it’s there. If possible summarise or quote the most relevant part of an important link, in case the target site is unreachable or goes permanently offline. In addition that link was already included as the first reference in the original question .
    – HBruijn
    Commented Jun 30, 2023 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .