我用Indy(D6)级件在局域网中进行通信。 我的IP是192.168.0.100服务器上用了IdTCPServer1。在客户机上用了IdTCPClient1控件。
当我在本机上同时运行服务器程序和客户软件是在客户软件上使用了
try
IdTCPClient1.Connect();//默认timeout 是以ms计的
except
//异常代码
end;
进行连结是客户机能顺利的与服务器程序连上。
但我将客户程序放到网上的其它机子上如192.168.0.101
运行客户程序的上面的代码时发生了“Socket error #10061 connection refused!”
我的网络是通的(我ping过)。
不知道是什么原因,各位遇到过此情况吗?如何解决??
当我在本机上同时运行服务器程序和客户软件是在客户软件上使用了
try
IdTCPClient1.Connect();//默认timeout 是以ms计的
except
//异常代码
end;
进行连结是客户机能顺利的与服务器程序连上。
但我将客户程序放到网上的其它机子上如192.168.0.101
运行客户程序的上面的代码时发生了“Socket error #10061 connection refused!”
我的网络是通的(我ping过)。
不知道是什么原因,各位遇到过此情况吗?如何解决??
如果能连上,问题就在客户端.
如果没有,控制面板-〉网络与拨号连接-〉本地连接-〉属性-〉TCP/IP->属性-〉高级-〉选项-〉
TCP/IP筛选-〉属性,然后更改就行了
Socket error 10004 - Interrupted function call
Socket error 10013 - Permission denied
Socket error 10014 - Bad address
Socket error 10022 - Invalid argument
Socket error 10024 - Too many open files
Socket error 10035 - Resource temporarily unavailable
Socket error 10036 - Operation now in progress
Socket error 10037 - Operation already in progress
Socket error 10038 - Socket operation on non-socket
Socket error 10039 - Destination address required
Socket error 10040 - Message too long
Socket error 10041 - Protocol wrong type for socket
Socket error 10042 - Bad protocol option
Socket error 10043 - Protocol not supported
Socket error 10044 - Socket type not supported
Socket error 10045 - Operation not supported
Socket error 10046 - Protocol family not supported
Socket error 10047 - Address family not supported by protocol family
Socket error 10048 - Address already in use
Socket error 10049 - Cannot assign requested address
Socket error 10050 - Network is down
Socket error 10051 - Network is unreachable
Socket error 10052 - Network dropped connection on reset
Socket error 10053 - Software caused connection abort
Socket error 10054 - Connection reset by peer
Socket error 10055 - No buffer space available
Socket error 10056 - Socket is already connected
Socket error 10057 - Socket is not connected
Socket error 10058 - Cannot send after socket shutdown
Socket error 10060 - Connection timed out
Socket error 10061 - Connection refused
Socket error 10064 - Host is down
Socket error 10065 - No route to host
Socket error 10067 - Too many processes
Socket error 10091 - Network subsystem is unavailable
Socket error 10092 - WINSOCK.DLL version out of range
Socket error 10093 - Successful WSAStartup not yet performed
Socket error 10094 - Graceful shutdown in progress
Socket error 11001 - Host not found
Socket error 11002 - Non-authoritative host not found
Socket error 11003 - This is a non-recoverable error
Socket error 11004 - Valid name, no data record of requested type