|
-
May 18th, 2012, 01:19 PM
#4
Re: localhost: 10061 Connection is forcefully rejected
I suspect the problem lies at this "server."
This doesn't inspire much confidence either:
 Originally Posted by asterix48
The server waits in an endless loop for a client to connect.
The accept method of the java.net.ServerSocket object is called in the loop.
A server shouldn't be looping at all, but be sitting with the socket "listening" while in some alertable wait state.
More likely the issue here is timing and the use of the loopback address is very fast so it can "miss" those times when the TCP endpoint is available to accept a connection. Other forms of IP addresses or names go through a lengthier slower process that makes them somewhat more likely to get lucky and get a hit.
The error says it all: there is no listener to connect to.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|