For Programmers: Free Programming Magazines  


Home > Archive > Java Help > June 2005 > How does MSN do it???









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How does MSN do it???
Bond

2005-06-09, 8:58 pm

How does MSN allow user to connect to other users to chat if the end
user is behind a router/NAT? I'm thinking in terms of Java and using
Sockets and I can't think of a way for myself to connect to my friend
when he is behind a NAT.

Bryce

2005-06-09, 8:58 pm

On 9 Jun 2005 06:08:43 -0700, "Bond" <nicholas.parnell@gmail.com>
wrote:

>How does MSN allow user to connect to other users to chat if the end
>user is behind a router/NAT? I'm thinking in terms of Java and using
>Sockets and I can't think of a way for myself to connect to my friend
>when he is behind a NAT.


The client initiates the connection. Same reason why if you block port
80 on your router, your web browser still works.

--
now with more cowbell
Paul Tomblin

2005-06-09, 8:58 pm

In a previous article, "Bond" <nicholas.parnell@gmail.com> said:
>How does MSN allow user to connect to other users to chat if the end
>user is behind a router/NAT? I'm thinking in terms of Java and using


When you're chatting to your buddy through MSN, you both initiated a
connection to MSN's server, and every byte you send goes to MSN's server
and then back through the connection that they made to MSN. The bytes get
back to his MSN client the same way they get back to his web browser when
he browses for porn^W^Wthe web.


--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
"Help!! Come see the violence inherent in the symin!"
- Cobb, User Friendly, by Illiad
Bond

2005-06-09, 8:58 pm

WOW! I thought MSN was P2P and the messages didn't go through the
server... seemed like a large load for the server to handle. But it
does make sense.

Ray in HK

2005-06-09, 8:58 pm

just like proxy ?

"Paul Tomblin" <ptomblin+netnews@xcski.com> ¦b¶l¥ó
news:d89g7v$mbu$1@allhats.xcski.com ¤¤¼¶¼g...
> In a previous article, "Bond" <nicholas.parnell@gmail.com> said:
>
> When you're chatting to your buddy through MSN, you both initiated a
> connection to MSN's server, and every byte you send goes to MSN's server
> and then back through the connection that they made to MSN. The bytes get
> back to his MSN client the same way they get back to his web browser when
> he browses for porn^W^Wthe web.
>
>
> --
> Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
> "Help!! Come see the violence inherent in the symin!"
> - Cobb, User Friendly, by Illiad



limingjun

2005-06-10, 4:01 am

In almost time,MSN works in the server model(send all messge to the
server and get the message from the server).But when the both all in
same LAN,the works in the P2P.Because ,if you send large file to
other,in lan it's fast,if not it's slowly.

Juhan Kundla

2005-06-10, 4:02 pm

In article <mogga1lihqjdce7i7l8f63u0gij6d36rhm@4ax.com>, Bryce wrote:
> On 9 Jun 2005 06:08:43 -0700, "Bond" <nicholas.parnell@gmail.com>
> wrote:
>
>
> The client initiates the connection. Same reason why if you block port
> 80 on your router, your web browser still works.


I don't think so. MSN works even when *all* chatters are behind the NAT
router. This leaves only one option -- the MSN traffic must be
relayed through some well-known MSN server in the Internet and all
online clients (behind NAT or not) must have initiated connections to
the server.


Juhan

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com