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.45k stars 408 forks source link

Still no media? #228

Open richardgohth opened 1 year ago

richardgohth commented 1 year ago

just downloaded and run on Ubuntu 20. Proxy shows connected But cannot send photos. Is it supposed to be like this?

eozturk1 commented 11 months ago
richardgohth commented 11 months ago

Hi

Thanks for support.

Got progress

Now able to receive images but unable to send.

using this to invoke

docker run -it -p80:80 -p 443:443 -p 5222:5222 -p 8080:8080 -p 8443:8443 -p 8222:8222 -p 8199:8199 -p 587:587 -p 7777:7777 facebook/whatsapp_proxy:latest

Any ideas?

Thanks

Rgds

Richard, Singapore

  • You should see the media endpoint on the statistics page (See https://github.com/WhatsApp/proxy#check-your-connection for how to reach that page).
  • Your WhatsApp proxy page should display "Connected" and it should NOT show "Media: unavailable".
  • Your Internet provider may be filtering your packets based on ports. The default port for media is 587 and changing it might help. For this, you will need to update the HaProxy configuration to bind to a different port and update the media port settings on your phone.
fungjigroup commented 11 months ago

Can I have the WhatsApp proxy IP address you are using?

richardgohth commented 11 months ago

Testing

On Wed, 22 Nov 2023, 13:34 fungjigroup, @.***> wrote:

Can I have the WhatsApp proxy IP address you are using?

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1822143055, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKWO5FIL6TR3ZRD7CM2EETYFWFIDAVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRSGE2DGMBVGU . You are receiving this because you modified the open/close state.Message ID: @.***>

fungjigroup commented 11 months ago

I am from Hong Kong. Would you mind if you can provide the IP address for us to test as well? My wife is in Mainland China. I want to test if the WhatsApp proxy IP address can be used in Mainland China or not. Thanks!

richardgohth commented 11 months ago

Try Anpr.optasia.com.sg For testing only

On Fri, 24 Nov 2023, 11:14 fungjigroup, @.***> wrote:

I am from Hong Kong. Would you mind if you can provide the IP address for us to test as well? My wife is in Mainland China. I want to test if the WhatsApp proxy IP address can be used in Mainland China or not. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1825099104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKWO5AWT4337DTFVXV7QRDYGAGJ7AVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGA4TSMJQGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

fungjigroup commented 11 months ago

Thanks! I just test it and it works fine! I ll let my wife in Mainland China to test it in the coming weekend and I ll let you know the result later. Anyway, thanks for your help!

On Sun, Nov 26, 2023, 18:56 richardgohth @.***> wrote:

Try Anpr.optasia.com.sg For testing only

On Fri, 24 Nov 2023, 11:14 fungjigroup, @.***> wrote:

I am from Hong Kong. Would you mind if you can provide the IP address for us to test as well? My wife is in Mainland China. I want to test if the WhatsApp proxy IP address can be used in Mainland China or not. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1825099104, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOKWO5AWT4337DTFVXV7QRDYGAGJ7AVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGA4TSMJQGQ>

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1826751258, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCCWOESCW2TDLKS3EPNGCLTYGMN6XAVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWG42TCMRVHA . You are receiving this because you commented.Message ID: @.***>

fungjigroup commented 11 months ago

Hello, I found that the proxy server only shows “connecting....” on Wednesday (29 November) night time. Is the server something wrong or is it under maintenance?Please kindly advise! Thanks!

Albert

On Sun, Nov 26, 2023, 18:56 richardgohth @.***> wrote:

Try Anpr.optasia.com.sg For testing only

On Fri, 24 Nov 2023, 11:14 fungjigroup, @.***> wrote:

I am from Hong Kong. Would you mind if you can provide the IP address for us to test as well? My wife is in Mainland China. I want to test if the WhatsApp proxy IP address can be used in Mainland China or not. Thanks!

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1825099104, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOKWO5AWT4337DTFVXV7QRDYGAGJ7AVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRVGA4TSMJQGQ>

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1826751258, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCCWOESCW2TDLKS3EPNGCLTYGMN6XAVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWG42TCMRVHA . You are receiving this because you commented.Message ID: @.***>

fungjigroup commented 11 months ago

Hello, I try to ping Anpr.optasia.com.sg on my computer and it replies but it cannot connect to the WhatsApp proxy in WhatsApp.

Any ideas?

Thanks!

Best Regards,

Albert, Hong Kong

richardgohth commented 11 months ago

let me check and get back to you may take a couple of days as need to physically power cycle server can email me directly at @.***

On Thu, Nov 30, 2023 at 9:54 AM fungjigroup @.***> wrote:

Hello, I try to ping Anpr.optasia.com.sg on my computer and it replies but it cannot connect to the WhatsApp proxy in WhatsApp.

Any ideas?

Thanks!

Best Regards,

Albert, Hong Kong

— Reply to this email directly, view it on GitHub https://github.com/WhatsApp/proxy/issues/228#issuecomment-1832980636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOKWO5CT6JGBMC2KPM25QILYG7RODAVCNFSM6AAAAAA6M6EJGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZSHE4DANRTGY . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Richard Goh AWAY 16Nov to 7 Dec 2023 B.Eng(EE), M.Sc(EE) @.> @. Whatsapp: +6596759360 Wechat: rgoht Skype: richardgohth Zoom, Teams: @.** - [7am to 9pm SGT] Check out our anpr online http://anpr.optasia.com.sg/lastimage.php http://anpr.optasia.com.sg/sgdeeplearninganpr.html http://anpr.optasia.com.sg/sgdeeplearninganpr.html*

Industry Leader https://www.vision-systems.com/articles/print/volume-23/issue-2/features/neural-networks-help-identify-license-plates-for-traffic-control.html https://www.vision-systems.com/articles/print/volume-23/issue-2/features/neural-networks-help-identify-license-plates-for-traffic-control.html We Take Pride In Our Work Period

PlayList https://www.youtube.com/watch?v=vAvFa6FjUKk&list=PLlvhbgAk3f4ZXSvLOoaurKiRyJ4guYuuv

Vivotek ANPR Partner

https://www.vivotek.com/partners/application-partner/109/Optasia%20Systems

http://optasia.com.sg

122A Tembeling Road Singapore 423621. Phone: +65-63454575 Fax: +65-63458252

Acra Regn: 199606626C Licensed Security Service Provider: C2020055869 https://youtu.be/H0lLALLnDk4

offer1983 commented 3 months ago

281

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.

dephea commented 3 months ago

281 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.

Could you please clarify if I'm supposed to host a separate ip:port for media? The thing is I'm forwarding it through free version Ngrok and I can't use two ports simultaniously

wpyoga commented 1 month ago

the session is using a self-signed certificate, while the media part is using WhatsApp's certificate.

I'm having the same issue. This is what I get with curl on port 443:

* Server certificate:
*  subject: CN=1iCBLvVF330N.net
*  start date: Aug 14 03:42:48 2024 GMT
*  expire date: Aug 12 03:42:48 2034 GMT
*  issuer: CN=gYSkf3n0Uxybzdlam

This is what I get with curl on port 587:

* Server certificate:
*  subject: C=US; ST=California; L=Menlo Park; O=Meta Platforms, Inc.; CN=*.whatsapp.net
*  start date: Jun 20 00:00:00 2024 GMT
*  expire date: Sep 18 23:59:59 2024 GMT
*  issuer: C=US; O=DigiCert Inc; OU=www.digicert.com; CN=DigiCert SHA2 High Assurance Server CA

I'm guessing that at least in China, packets are scanned and HTTPS connections with certificates with CN=*.whatsapp.net are denied.

I tried to use a HTTPS reverse proxy to override the certificate, and curl seems to be able to get all the info. However, WhatsApp couldn't connect to the port for media.