【发布时间】:2014-03-25 14:57:00
【问题描述】:
使用如下所示的winsock,我们将信息发送到TCP端口8000。但有时我们会收到Connection is forcefully rejected(error number 10061)和Connection is aborted due to timeout or other failure(error number 10053)这样的错误。但在这两个电脑防火墙都被禁用。所以我认为端口不会因防火墙而关闭。那么如何解决这些错误。
Dim TempWinClient As New AxMSWinsockLib.AxWinsock
TempWinClient.RemoteHost = PCName
TempWinClient.RemotePort = Port
TempWinClient.Tag = Message
TempWinClient.Connect()
【问题讨论】: