Renato Sinohara Posted October 3, 2005 Share Posted October 3, 2005 I know it must be basic stuff but there comes an easy one for you:I'm am creating a simple multiplayer game, now I just need to set up the network part. The thing is I can't make even the simplest client-server chat because I get stuck on this connection denied error(error 10061). I can make one machine connect to itself using localhost(127.0.0.1) but it wont work even with its network address.I'm sory it must really be simple but i've been having trouble with this one. Thanks a lot. Link to comment Share on other sites More sharing options...
KAndle Posted October 3, 2005 Share Posted October 3, 2005 Are you behind firewalls? You must open the ports you are trying to connect through. Also can you ping the other machines? Link to comment Share on other sites More sharing options...
Renato Sinohara Posted October 3, 2005 Author Share Posted October 3, 2005 Ok, I've tried turning off firewalls, pinging the machines sure works, but i can't even make one machine connect to itself (i do, but only using localhost, not its IP on the network). I figured out its probably a security issue, like being unable to accept incoming connections, but can't see how to fix it. Besides I extensively use p2p and other sharing programs and they do well. Thanks for your help. Link to comment Share on other sites More sharing options...
KAndle Posted October 3, 2005 Share Posted October 3, 2005 (edited) You could try putting the entries into your HOSTS file.location is c:\windows\system32\drivers\etcAdd the ip address along with the names you want (in the same format as the localhost entry) & see if you can connect then with the names instead. Edited October 3, 2005 by KAndle Link to comment Share on other sites More sharing options...
Renato Sinohara Posted October 4, 2005 Author Share Posted October 4, 2005 (edited) Ok i fugured out part of it... I was starting the TcpListener with 127.0.0.1 as local IP. So i couldn't connect to it from others computers.But still I'm having problems to connect through the internet. I am behind a router, so I think the problem is that I have to set my local IP to my lan address when I start the listener, but like this I can't get a connection from outside the lan. Does anybody know a solution to starting a listener behind a router?? Please help me Oh yes I should say I've set up the port forwarding of the router so I don't see what else is keeping me from connecting exept for having the right IP when I start listening. Edited October 4, 2005 by Renato Sinohara Link to comment Share on other sites More sharing options...
KAndle Posted October 4, 2005 Share Posted October 4, 2005 You could setup a VPN then you would have a local IP address when you are connected. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now