Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to whatsapp #224

Open
codingr opened this issue Feb 23, 2015 · 90 comments
Open

Can't connect to whatsapp #224

codingr opened this issue Feb 23, 2015 · 90 comments

Comments

@codingr
Copy link

codingr commented Feb 23, 2015

"xxxxxxxxxx disconnected
Server closed the connection"

This message appears when I start pidgin. It worked perfectly 24 hours ago. I have tried setting server as c.whatsapp.net, c2.whatsapp.net, c3.whatsapp.net, changing port to 443 and 5222, resource Android-2.11.151-443 to Android-2.31.151-443... with no luck.

I've read some spanish guys who are suffering the same problem.My OS is Windows 7 with SP1, just in case.

@nicoceledon
Copy link

I've got the same problem, but i just tried with c3.whatsapp.net and c2.whatsapp.net, with port 443 and Android-2.31.151-443.

I'm using debian Jessie.

@KottV
Copy link

KottV commented Feb 24, 2015

the same :(

@annonbacca
Copy link

Happen with me too. But I think its probably an auto blocking mechanism they are using.

@vanfanel
Copy link

Same here. Tried the different servers and ports with no luck.
Are they locking us out? I am also in Spain.

(OS is not related to this issue as far as I understand, but I'm on Debian GNU/Linux)

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@vanfanel
Copy link

@davidgfnet: in the first place, a HUGE thanks for this great piece of software! :)

Can you please post the exact settings you are using? (server, port, android version...)
Maybe they are locking users progressively?
Using the latest github code here with no luck since yesterday.

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@vanfanel
Copy link

@davidgfnet : My number is also very old and I registered via yowsup too, a year ago. So we are in the same situation.

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@vanfanel
Copy link

Mine's a normal spanish number. 34 610 XXX XXX, not an US number.

@gynt
Copy link

gynt commented Feb 24, 2015

I cannot connect either.
I am using pidgin:
2.10.9.
c2.whatsapp.net
443
Android-2.31.151-443

I have a dutch number. I registered three years ago via yowsup and reregistered 1 1/2 years ago. The server closes the connection. This started this weekend.
I am using whatsapp dll version from 6 september 2014 (Version 0.1).

@annonbacca
Copy link

@vanfanel

most likely they are locking us out. Had the problem ever since I intentionally restarted it while switching ip address. Most likely its a block, my only hope its a temporary thing cause I have heard users of an alternate client "whatsapp plus" were getting blocked like randomly. So its probable they are handing out blocks based on our strange whatsapp app version numbers. Additionally at the time, I was using c2.whatsapp.net while the other numbers were using c3.whatsapp.net

I registered using a rather old version of WART, and in the time I registered this number of mine that got blocked, I registered for one other number, and that number has typically been dormant, so when this number got blocked, I wasn't using the other number, and I am still able to use that number along with other numbers which I have created over time, which were made with varying versions of WART but similar whatsapp android version. I think the real issue is the blocking.

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@rutja76
Copy link

rutja76 commented Feb 24, 2015

Here's an extract from my pidgin log (I've X:ed some information):

(16:42:35) account: Connecting to account XXXXXXXX.
(16:42:35) connection: Connecting. gc = XXXXXXX
(16:42:35) GdkPixbuf: gdk_pixbuf_composite: assertion GDK_IS_PIXBUF (dest)' failed (16:42:35) GLib-GObject: g_object_unref: assertionG_IS_OBJECT (object)' failed
(16:42:35) waprpl: logging in XXXXXXXXXXXXX
(16:42:35) dnsquery: Performing DNS lookup for c2.whatsapp.net
(16:42:35) dnsquery: IP resolved for c2.whatsapp.net
(16:42:35) proxy: Attempting connection to 184.173.147.53
(16:42:35) proxy: Connecting to c2.whatsapp.net:433 with no proxy
(16:42:35) proxy: Connection in progress
(16:42:40) util: Writing file prefs.xml to directory C:\Program Files (x86)\PidginPortable.purple
(16:42:40) util: Writing file C:\Program Files (x86)\PidginPortable.purple\prefs.xml
(16:42:40) util: Writing file accounts.xml to directory C:\Program Files (x86)\PidginPortable.purple
(16:42:40) util: Writing file C:\Program Files (x86)\PidginPortable.purple\accounts.xml
(16:42:41) util: Writing file blist.xml to directory C:\Program Files (x86)\PidginPortable.purple
(16:42:41) util: Writing file C:\Program Files (x86)\PidginPortable.purple\blist.xml
(16:42:41) accels: saving accels to C:\Program Files (x86)\PidginPortable.purple\accels
(16:42:56) proxy: Connecting to c2.whatsapp.net:433.
(16:42:56) proxy: Error connecting to c2.whatsapp.net:433 (Connection timed out.).
(16:42:56) proxy: Connection attempt failed: Connection timed out.
(16:42:56) connection: Connection error on XXXXXXX (reason: 0 description: Unable to connect: Connection timed out.)
(16:42:56) GdkPixbuf: gdk_pixbuf_composite: assertion GDK_IS_PIXBUF (dest)' failed (16:42:56) GLib-GObject: g_object_unref: assertionG_IS_OBJECT (object)' failed
(16:42:56) account: Disconnecting account XXXXXXXXXXXXXX (XXXXXXXXX)
(16:42:56) connection: Disconnecting connection XXXXXXXX

@nicoceledon
Copy link

i've got this from the log

Tag: start
at[from]=s.whatsapp.net
Data: ...

Tag: stream:features
Data: ...

Tag: challenge
Data: ËÊù�•66¼qJ ...

Tag: response
Data: M(À�ÙCˆhq
...

Tag: failure
Data: ...
Tag: not-authorized
Data: ...

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@cassiodoroVicinetti
Copy link

I got the same log as nicoceledon, then I asked for a new password by WART and now it's working!

@davidgfnet
Copy link
Owner

davidgfnet commented Feb 24, 2015 via email

@vanfanel
Copy link

Hmmm.... so asking for a new password fixes it?
Is there a way to receive the new password without a phone? I haven't the number I use with this lib anymore.

@nicoceledon
Copy link

That was all! Request the password and running.

@vanfanel As for the password request without a phone, i don't think you can't because they send you the code to the phone.

@davidgfnet
Copy link
Owner

I'm using WP7-2.31.151-443 as resource connecting to c1.whatsapp.net
But I think the problem is the password, so... I think i will close this. So far recommentations are: as usuarl try a fresh install/config, try my resource, try different hostnames and if that does not work, ask for a new password.

Thanks guys!

@rutja76
Copy link

rutja76 commented Feb 24, 2015

Changing the password does not seem to work for me: I get connection timed out (as reported above) on c1, c2 and c3.whatsapp.net

UPDATE: just got in using c3.whatsapp.net and port 5222

@gynt
Copy link

gynt commented Feb 24, 2015

New password with WART worked for me!

@davidgfnet
Copy link
Owner

By timed out what you mean? You are able to use it but at some point it disconnects or you never get the chance to use it at all?

@rutja76
Copy link

rutja76 commented Feb 24, 2015

Yes, timed out, it started yesterday evening. Now, I have to admit that I don't know whether changing password with WART has nothing to do with that. But I've tried c1, c2 and c3 servers and I was timed out an all of them on port 443, which I've been using all the time without any problems until yesterday evening. After changing password with WART I was still timed out, so I tried changing port to 5222 as it was mentioned in the first post of this thread. Only at that point I was able to login on c3 server (haven't tried the other ones) using Android-2.31.151-443 as resource.

PS: for timed out I mean "Connection timed out." I put an extract of the log here above.

@davidgfnet
Copy link
Owner

Maybe whatsapp servers were down... just saying. I mean, behind any hostname (ie. c3) there are a bunch of servers (different IPs) so bad luck can make you ending up in a broken server. I guess the official app has a round robin mechanism so everytime there is a timeout it retries a different IP. (seems that pidgin does not do that).
On top of that they are kicking people using non-official clients such as WA+, that could be another reason... I don't know why people is so dumb not to migrate to Telegram.

@rutja76
Copy link

rutja76 commented Feb 24, 2015

Actually port 443 (on c1, c2 and c3) doesn't work for me anymore since yesterday evening, and I have been using it for a year. Just retried: timed out. Only port 5222 seems to work.

@KottV
Copy link

KottV commented Feb 25, 2015

i've tried openwapp (in firefox os emul), and it worked
then, re-registered with yowsup, and whatsapp-purple connected flawlessly...

@Cybernetic1
Copy link

Does it mean that if my number is blocked by Whatsapp, there's no way to revive it? I e-mailed them and they simply pointed to this answer :(

@annonbacca
Copy link

Just got another number blocked. Feeling miserable cause I can't try reactivating the number via SMS, lost the SIM card. Anyways this happened to me on a number registered using the latest WART and has only been used on pidgin.

I think, the blocking mechanism takes place during logging on stage (Connection to server) so if a number has been running for weeks on end, non-stop with continuous internet connection, you are less likely to be banned whereas those that happen to run it on a choppy bad internet connection with lots of disconnects would face eventual block. Like the checking mechanism for fake client, I suspect runs on a random basis, so its possible to connect and disconnect a couple of times to the hour but eventually a trace would happen and the number could get blocked.

I am not sure as for the latest whatsapp, but I was running mine using one of the old dlls which doesn't have any of the read receipt capability. So far, my other accounts which were registered using the official client are still running, and I do switch them on pidgin from time to time, and so far no problem.

And yes, the ones made using the official client have profile picture and status messages adjusted so they don't just appear as blank profile with an equally blank status or the default, "Hey, I am on whatsapp" message.

The other final thing I would like to add is that the WART client uses an unknown fixed google account (or probably none at all) while the whatsapp official for android has a tie in with a unique google account (which is used mainly for push notification), its how they know if the same user has resurrected a deleted account on the same number, in addition to the user identifiable information such as phone contacts and IMEI + MAC. I suppose the iOS based Apple phones has a tie in with iCloud. So, I suppose it won't be hard for them to eventually spot all those that do not have a distinct google/iCloud account, or all those that are registered to a single account.

Finally, I would like to take this opportunity to thank DavidGF for creating a fantastic software that allows me to use Whatsapp on PC. Thank you man, most appreciate it.

@davidgfnet
Copy link
Owner

I'm kinda lazy those days but in the past I used to implement everything by capturing real Wa traffic from my phone. So... Pcap traces are more than welcome!

@davidgfnet
Copy link
Owner

Oh btw. Which is the best method to extract wa password from an android phone? I may give that i try.

@dequis
Copy link

dequis commented Mar 8, 2015

@davidgfnet
Copy link
Owner

Yeah. No way I'm running an apk without compiling it myself, specially when it requires root access.. Not that crazy.
Thanks anyway. I might decompile it and give it a look

@Red-Hell
Copy link

Red-Hell commented Mar 8, 2015

Same problem here. Account banned yesterday morning. I've also tried installing whatsapp under android emulator and says that my number is banned.

I hope they will unban my account...

@dequis
Copy link

dequis commented Mar 9, 2015

@davidgfnet the 'bash' section in the same page provides a do-it-yourself method

BTW the situation in this ticket is looking pretty bad. Maybe creating a 'whatsapp web' client isn't a bad idea after all... I wrote some notes about it, only good enough as an introduction/overview, but there's plenty of stuff left to reverse to achieve a working third party client for that. It's also completely different from this plugin... And I mentioned it there, but there's a restriction to only one web client at the same time (the others get in a pause-like mode, and gotta implement a way to takeover the mutex)

@davidgfnet
Copy link
Owner

Yeah thanks, I managed to get my pwd but it's very tricky to eavesdrop it since the client usually reconnects using the simplified handshake mechanism instead of doing a full handshake. I haven't still figured out whether we can decrypt that.
What you say sounds interesting but IMO this defies the whole purpose of all of this which is getting rid of the official client. The main consumers of this plugin seem to be people not having an smartphone at all.

@Red-Hell
Copy link

Red-Hell commented Mar 9, 2015

In fact, David, I haven't a smartphone ad I don't want it (I don't want to pay for another internet connection ad I can't use something touch, I prefer keys).

But David, you have to be proud of your plugin, also if it lacks of something, if the only way that the WA team has to block other program is blocking the account.

In another system you will have only to register again, but change the phone number is not really easy...

EDIT: no way, my number is still blocked, I've checked with official client on an android emulator

@Red-Hell
Copy link

"Hi,

Your WhatsApp account has been banned because your activity on WhatsApp is in violation of our Terms of Service.

We cannot comment on the individual reasons that have led to your account ban. However, the following actions provide examples of activity that will result in an account becoming banned:

bla bla as written in faq

Please review our Terms of Service to learn more about the appropriate uses of WhatsApp.

We currently do not have a repeal process in place for unbanning your account."

Now I really doesn't need a smartphone...

Sorry David, but you will have to write this on the homepage of this projet, to use this plugin at risk of ban...

@davidgfnet
Copy link
Owner

Well... People usually accept the ToS without reading them. I agree I could explicitly warn people but come on, they are grown up, it's time to assume responsibilities.

@Jeronimo17
Copy link

You're doing a good job, you're helping people to change to Telegram :P

@assegaf
Copy link

assegaf commented Mar 15, 2015

@davidgfnet did you managed to able to see live debug log IN/OUT of whatsapp official client ?
how to do this in simple way ?
maybe something mismatch different mechanism between official and this api. thanks

@davidgfnet
Copy link
Owner

Extract your pass. Make sure WA connects using a full handsake (see my net-tools repo). Use wireshark with the freshly extracted password. Make sure to kill the app (just reboot the phone to make sure) and start using watsapp on your phone.

@assegaf
Copy link

assegaf commented Mar 16, 2015

ah yes, sorry, reboot the phone to get Full handshake, I will try now ..
Update :
after force close WA, remove cache, reboot, still sending The auth BLOB handshake Challenges key. I wonder where android client get this blob handshake key..

maybe from cloud.. not sure
I will try from Beginning simcard register

2.11.476 android

Sorry should be posted on other project

@namoplasta
Copy link

@davidgfnet
When installed whatsapp-purple from the source code, is still maintained Android-2.11.151-443, and only works on Android-2.31.151-443, I think this must be updated in git.
Only worked with me at the port 5222, think it should be a warning in the plugin to set this port if the 433 does not work.

@marga-personal
Copy link

I got one account blocked back by the end of February, I wrote to request an unblock and they replied saying that I was using an unauthorized program and that they wouldn't unblock.

I'm now having a somewhat similar but different problem with a different number. It frequently disconnects with the "Server closed connection" message, but then it reconnects fine. It just doesn't stay connected long, sometimes it's seconds, sometimes it's minutes. Sometimes after reconnecting I get the backlog, sometimes I don't. :-/

I've tried changing servers and resource, but that doesn't seem to make any difference.

Any tips on how to get a more stable connection?

@davidgfnet
Copy link
Owner

See #263

@gabriel-tandil
Copy link

My contribution:
After Whatsapp lock my account, and after pray to whatsapp support to unlock my numbers, with negative response on several occasions. Wait several weeks, I went back to try and my numbers works again.
Anyway... Telegram rule
Fuck that whatsapp

@namoplasta
Copy link

Fuck WhatsAPP, Telegram rules.

@dektiram
Copy link

i use pidgin whatsapp for 2 moths, everything work well. But since 2015-07-21 my account was "not-authorized". I've try to change password using WART and I get new password. But it's not give solution, my account still not-authorized. I try to use new number and register it via WART, but the same problem is happend. Is that any change in whatsapp rule ?

@ikbalenjino
Copy link

now pidgin is end. good bye

@ViBE-HU
Copy link

ViBE-HU commented Sep 8, 2015

i'm tried to setup wa plugin but i guess i did something wrong or just impossible to make it work. i have a Nokia N9 with Whatsup. my number is already registered and it cannot connect with my phone if i authorise my number with the wa plugin and reverse. how can i setup both client to not de-authorise each other when i connect?

@rodpmaia
Copy link

Worked for me using this:
c3.whatsapp.net
5222
Android-2.31.151-443

rutja76 commented on 24 Feb

Yes, timed out, it started yesterday evening. Now, I have to admit that I don't know whether changing password with WART has nothing to do with that. But I've tried c1, c2 and c3 servers and I was timed out an all of them on port 443, which I've been using all the time without any problems until yesterday evening. After changing password with WART I was still timed out, so I tried changing port to 5222 as it was mentioned in the first post of this thread. Only at that point I was able to login on c3 server (haven't tried the other ones) using Android-2.31.151-443 as resource.

PS: for timed out I mean "Connection timed out." I put an extract of the log here above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests