Original Post
Hi everyone :) I'm afraid my questions here won't seem very programming-related, these are much more newbie questions about routers in general... I DID browse the faq but I didn't really find the answer. I'm currently developping a multiplayer game. I haven't got a lot of experience about networks myself, so maybe you'll think my attempt is in very good position to fail... yet I managed to write some simple server code using winsock (TCP), and it seems to work for now, when I try them with telnet 127.0.0.1 from my own computer. So I gave this server code I made to a friend of mine. He launched the application from his home, and I used telnet again in the same way, with his ip address this time, on the same port, and it worked, i.e. his results were the same I got when testing alone : connection was accepted and he was receiving my sends. Then... we tried the other way. I launched from home and waited for his telnet to connect. But no connection ever occured. I'm connected to the internet with a special modem (the "C-Box") of my FAI (cegetel in France) which, as far as I know, works pretty much as a router. It has an IP address and my PC has a LAN adress (or so I guess, as I said I'm not very clear about it). The IP my friend used with telnet is the "public IP" provided by my C-Box, which is the same as the one I get with www.whatismyip.com, and the same again that the one my friend read out of my connection when I connected to him. I tried to manually disable the winxp firewall for the port I use when I create the socket used to listen() in my server code... still, my friend never could connect to me... while I connected to him perfectly. Could anyone have a solution to this ? :) (If not, even an explanation would be very much appreciated :D) best regards, - TiPiou - [Edited by - TiPiou on August 15, 2006 6:02:03 PM]