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 378 forks source link

Media host #289

Open dephea opened 1 month ago

dephea commented 1 month ago

Could anyone please clarify how am I supposed to use Media-host. I'm running a container an I tunneled a ngrok tcp connection and the ngrok forwards to the 443 port. However in the Whatsapp applcation I can only use the external port from the Ngrok and I don't understand how am I supposed to use the media port (if there is any)

eozturk1 commented 1 month ago

Hi @dephea! In the application, you can customize the media port. You can see instructions at https://faq.whatsapp.com/520504143274092/?cms_platform=android.

dephea commented 1 month ago

Hi @dephea! In the application, you can customize the media port. You can see instructions at https://faq.whatsapp.com/520504143274092/?cms_platform=android.

Hello! Thank you, I managed to resolve the issue, the thing was that the whatsapp application only allows to use one IP for chat and media. That's why I had to host both on the same hostname.

The other problem I encountered is that media proxy works rather unstable. Works off and on using the same device. Also might work on one device and not work on the other, at the same time. Perphaps you could help me understand the issue? Is there any possible way to fix it?

ericlam918 commented 1 month ago

When using Android, both text and media can be sent successfully through the same proxy server. However, on iPhone, only text messages can be sent, while media fails to deliver. In the case of the older version of iOS WhatsApp, both text and media functions operate smoothly. Upon updating iOS WhatsApp, the functionality is reduced to text-only transmissions.

spacesoft321 commented 1 month ago

I have some solution , try it and you can check live demo on FastWSapi.com

Run this some command

docker pull facebook/whatsapp_proxy:latest

systemctl start docker

docker run -d -p 8008:80 -p 8444:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 -p 588:587 -p 7777:7777 --user root facebook/whatsapp_proxy:latest

if any error

example :

Bind for 0.0.0.0:8008 failed: port is already allocated.

Kill process running on specific ports in Ubuntu and windows | Fix error “Address already in use”

How to kill ports in Ubuntu

kill $(lsof -ti :$PORT)

kill -9 $(lsof -ti :$PORT)

sudo kill -9 $(lsof -ti :$PORT)

More Info You Check Live demo on FastWSapi.com

ericlam918 commented 1 month ago

Today, the iOS version of WhatsApp upgraded to 2.24.16.75, seemingly enabling the transmission of media files.

dephea commented 1 month ago

Today, the iOS version of WhatsApp upgraded to 2.24.16.75, seemingly enabling the transmission of media files.

Hello! I still got the issue with Media host not working. I experience it with both android and ios