Sep 21, 2006 1:38:21 PM SimpleMsn$MsnListener exceptionCaught
SEVERE: MsnMessenger: test_user@hotmail.comjava.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
at net.sf.jml.protocol.incoming.IncomingUSR$1.getLoginTicket(IncomingUSR.java:168)
at net.sf.jml.protocol.incoming.IncomingUSR$1.run(IncomingUSR.java:195)
Sep 21, 2006 1:38:21 PM SimpleMsn$MsnListener logout
INFO: MsnMessenger: test_user@hotmail.com logout
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry I hadnt tried that. Yes indeed it fails. I tried to ping messenger.hotmail.com and it failed.
However, if i try to ping messenger.yahoo.com, it succeeds. I can see that I am definitely online and connected to the internet.
Also, if I login into MSN using the Windows Messenger, I am able to log in just fine. Which baffles me since behind the scenes, Windows Messenger should also be connecting to messenger.hotmail.com right?
Any clues?
Thanks much !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hrm. Well, the failed ping is "typical". Looks like they block/don't respond to/whatever pings. There's a chance that port might be blocked but then what is your standard windows messenger connecting on? Do you have any tools handy to watch the network traffic between Windows Messenger and messenger.hotmail.com?
The typical messengers have an "automatically configure using system network preferences" option that I believe will actually "figure it out" for you. If I were to guess, I would say it's trying some other ports that aren't blocked, so it would be nice to see what else it's trying. =)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I went into Windows Messenger and checked the connection settings. It doesnt have any port info there, so I assume its using the "defaults". Under advanced settings, it lets me test the connection using various approaches - TCP, SOCKS and HTTP, and all of them succeeded.
Is there any startup or other configuration params that I can tweak when I launch the application? I looked in the documentation and didnt find anything that I may have missed.
Thanks yet again !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see that a connection was entablished and there was communication back from msn. I am guessing since I am not logging in via Windows Messenger, is it asking me to download the same (notice the presense of the Intall_MSN_Messenger_DL.exe in the response)? And thats probably not what jml is ready to parse and process?
Of course thats just my guesswork...what do you think?
Thanks in advance for all the prompt help !!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Howdy! That CVR message you are seeing is actually a "recommendation", not an enforcement. So it should not be affecting you. Did you get this packet capture with JML or with the real MSN messenger? Also, are you actually trying to log in with JML as test_user@hotmail.com? Or did you put a "real account" in the code?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am new to JML. I downloaded the library and tried to run SimpleMsn. I get a Connection timed out error.
Please help.
Stack trace follows :-
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> VER 1 MSNP11 CVR0
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> CVR 2 0x0409 win 5.1 x86 MSNMSGR 6.2.0205 MSMSGS test_user@hotmail.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> USR 3 TWN I test_user@hotmail.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< VER 1 MSNP11 CVR0
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< CVR 2 7.0.0816 7.0.0816 6.2.0208 http://msgr.dlservice.microsoft.com/download/4/b/c/4bc83bb2-18dd-486f-943f-332a9b3e01dc/Install_MSN_Messenger_DL.exe http://messenger.msn.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< XFR 3 NS 207.46.106.81:1863 0 207.46.28.93:1863
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> VER 1 MSNP11 CVR0
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> CVR 2 0x0409 win 5.1 x86 MSNMSGR 6.2.0205 MSMSGS test_user@hotmail.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageSent
INFO: test_user@hotmail.com NS >>> USR 3 TWN I test_user@hotmail.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< VER 1 MSNP11 CVR0
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< CVR 2 7.0.0816 7.0.0816 6.2.0208 http://msgr.dlservice.microsoft.com/download/4/b/c/4bc83bb2-18dd-486f-943f-332a9b3e01dc/Install_MSN_Messenger_DL.exe http://messenger.msn.com
Sep 21, 2006 1:38:00 PM net.sf.jml.protocol.MsnSession$1 messageReceived
INFO: test_user@hotmail.com NS <<< USR 3 TWN S lc=1033,id=507,tw=40,ru=http%3A%2F%2Fmessenger%2Emsn%2Ecom,ct=1158871081,kpp=1,kv=7,ver=2.1.6000.1,rn=CbiGmzV1,tpf=4d582bed51738c672700773a68f4139f
Sep 21, 2006 1:38:21 PM SimpleMsn$MsnListener exceptionCaught
SEVERE: MsnMessenger: test_user@hotmail.comjava.net.ConnectException: Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:367)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
at net.sf.jml.protocol.incoming.IncomingUSR$1.getLoginTicket(IncomingUSR.java:168)
at net.sf.jml.protocol.incoming.IncomingUSR$1.run(IncomingUSR.java:195)
Sep 21, 2006 1:38:21 PM SimpleMsn$MsnListener logout
INFO: MsnMessenger: test_user@hotmail.com logout
I also tried setting the proxy host and port properties while launching the sample application, but that didnt seem to help either.
What happens if, from the machine you are trying this on, you type:
telnet messenger.hotmail.com 1863
Are you able to connect?
Hi Jadestrorm,
Sorry I hadnt tried that. Yes indeed it fails. I tried to ping messenger.hotmail.com and it failed.
However, if i try to ping messenger.yahoo.com, it succeeds. I can see that I am definitely online and connected to the internet.
Also, if I login into MSN using the Windows Messenger, I am able to log in just fine. Which baffles me since behind the scenes, Windows Messenger should also be connecting to messenger.hotmail.com right?
Any clues?
Thanks much !
Hrm. Well, the failed ping is "typical". Looks like they block/don't respond to/whatever pings. There's a chance that port might be blocked but then what is your standard windows messenger connecting on? Do you have any tools handy to watch the network traffic between Windows Messenger and messenger.hotmail.com?
The typical messengers have an "automatically configure using system network preferences" option that I believe will actually "figure it out" for you. If I were to guess, I would say it's trying some other ports that aren't blocked, so it would be nice to see what else it's trying. =)
Hi Jadestrorm,
I went into Windows Messenger and checked the connection settings. It doesnt have any port info there, so I assume its using the "defaults". Under advanced settings, it lets me test the connection using various approaches - TCP, SOCKS and HTTP, and all of them succeeded.
Is there any startup or other configuration params that I can tweak when I launch the application? I looked in the documentation and didnt find anything that I may have missed.
Thanks yet again !
Hrm. Do you happen to have a packet sniffer available? (like tcpdump) I'm particularly interested in the fact that all of those worked. ;D Hrm.
Hi Jadestorm,
I sniffed the packets and here is what I see :-
VER 1 MSNP11 CVR0
VER 1 MSNP11 CVR0
CVR 2 0x0409 win 5.1 x86 MSNMSGR 6.2.0205 MSMSGS test_user@hotmail.com
CVR 2 7.0.0816 7.0.0816 6.2.0208 http://msgr.dlservice.microsoft.com/download/4/b/c/4bc83bb2-18dd-486f-943f-332a9b3e01dc/Install_MSN_Messenger_DL.exe http://messenger.msn.com
USR 3 TWN I test_user@hotmail.com
XFR 3 NS 207.46.106.23:1863 0 207.46.96.141:1863
I see that a connection was entablished and there was communication back from msn. I am guessing since I am not logging in via Windows Messenger, is it asking me to download the same (notice the presense of the Intall_MSN_Messenger_DL.exe in the response)? And thats probably not what jml is ready to parse and process?
Of course thats just my guesswork...what do you think?
Thanks in advance for all the prompt help !!
Howdy! That CVR message you are seeing is actually a "recommendation", not an enforcement. So it should not be affecting you. Did you get this packet capture with JML or with the real MSN messenger? Also, are you actually trying to log in with JML as test_user@hotmail.com? Or did you put a "real account" in the code?
Hi Jadestrom,
The packet capture is with JML. I will try with the Windows messenger too and compare the results.
I am logging in with a real account...the test_user is just a placeholder that I substituted my real account with before I post here.
Thanks much for all the help !