View Full Version : socket cann't connet
lilac
08-04-2003, 11:12 PM
I write the client application in brew and server application in MFC,
but socket cann't connet,return Value is AEE_NET_ECONNREFUSED.
I studied the example :NetDiagnostics, "Echo Tests" cann't work, socket cann't connet too, why?
please help me!
kurquhar
08-06-2003, 09:09 AM
ECONNREFUSED indicates that there is no server listening for connections at the address and port specified.
The most common error is not using network byte order when specifyfing the port. For example, to connect to a web server, use HTONS(80).
If this does not fix your problem, please post the relevant portion of your code for more help.
lilac
08-06-2003, 06:57 PM
Thanks for your advice,my program has worked normally.
yunhuafu
02-06-2004, 08:53 AM
the tip is great, I hate to say that it cost me almost two days to solve this problem.
Thanks
vBulletin v3.0.13, Copyright ©2000-2009, Jelsoft Enterprises Ltd.