WhatsApp / proxy

This repository contains the WhatsApp proxy implementation for users to host their own proxy infrastructure to connect to WhatsApp for chat (VoIP is not currently supported)
MIT License
1.39k stars 377 forks source link

No media is being sent or received on WhatsApp for Android via the proxy #281

Closed Nicepaul closed 1 month ago

wenge110110 commented 1 month ago

I'm having this problem too.

eozturk1 commented 1 month ago

@Nicepaul Can you try in the app updating the media port to 587 or 7777 and try that way? Some networks may block traffic in certain ports which might be the issue you are encountering. From your phone network, can you send a CURL request for instance to either of these ports?

Alternatively you can run messaging through port 80 and media through 443 -- which should have a better chance of avoiding any of the port-specific restrictions. You can update the HAproxy config and match your new messaging/media settings on the app.

offer1983 commented 1 month ago

Previously identified this issue, some Android phones, especially Huawei, cannot connect to the media server, the connection fails. Recently, media servers on iOS in some regions have also begun to fail to connect.

WhatsApp proxy hasn't been updated for a long time and is outdated. When using curl to connect to port 587, WhatsApp's certificate is displayed, which seems relevant to your issue. According to your description, the session is using a self-signed certificate, while the media part is using WhatsApp's certificate. This situation might result in WhatsApp's certificate being intercepted by the Great Firewall (GFW) of China.

1. curel 433: `curl -k -v https://*.*.*.*:443

2. curl 587 `curl -k -v https://*.*.*.*:587

WhatsApp Error

`