Re: [asio-users] Another Error 10061, this time only sometimes.
Brought to you by:
chris_kohlhoff
|
From: Darren G. <lis...@gm...> - 2007-11-01 15:52:43
|
On 01/11/2007, Simon Pickles <sip...@ho...> wrote: > > Hello again! > > This small problem seems a little odd. My game server consists of > zoneservers connected by TCP to a master server, which coordinates > everything. > > The zones are c++ with boost::asio, the master server is python with > twisted. > > On home pc, it all works well. All servers are presently on the same PC > using localhost as their address. > > However at work, when the zone tries to connect to the master, I get > error 10061. This only occurs with my c++ app using ASIO. Other python > apps can connect to the master server, and so can PuTTY. > > Any guesses why? So 10061 translates (via google) to: *"TCP error code 10061: No connection could be made because the target* * machine actively refused it."* As well as that, we're going to need more information. On the local machine, how are you connecting to the server? Using the keyword "localhost"? If so, have you tried using "128.0.0.1"? How is the server accepting connections: using IP4, IP6, or either? TBH, this is the fundamental use of asio, so in this case I'd be surprised if the problem lay outside your app. Are you sure you're iterating through the endpoints correctly? Regards, Darren |