Chat program with server behind a router
-
hello... I need to write a simple chat program and I've noticed that there are alot of sample programs here that use socket programing. Most of them have a client program and a server program which listens to the client program and responds back to it. I also found one peer-to-peer program but here's my question: How do you connect to the server program (or a client/server) when the server is behind the router or some sort of a firewall. I mean I can't type 192.168.etc. as the ip address! So I was wondering if anybody can tell me how a msn-like chatting program works. Thanks alot.
-
hello... I need to write a simple chat program and I've noticed that there are alot of sample programs here that use socket programing. Most of them have a client program and a server program which listens to the client program and responds back to it. I also found one peer-to-peer program but here's my question: How do you connect to the server program (or a client/server) when the server is behind the router or some sort of a firewall. I mean I can't type 192.168.etc. as the ip address! So I was wondering if anybody can tell me how a msn-like chatting program works. Thanks alot.
Well, I guess that MSN server has a public IP, apparently you dont have one, so there mainly two solutions: 1. You put on the router somekind of port redirection to your chat server (to the right port of course) 2. You use some kind of VPN software like hamachi (hamachi.cc)