Jump to content

Connection problems - "Connection denied by host"


Renato Sinohara

Recommended Posts

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


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

You could try putting the entries into your HOSTS file.

location is c:\windows\system32\drivers\etc

Add 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 by KAndle
Link to comment
Share on other sites

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 by Renato Sinohara
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...