标签:ip地址 做了 exec previous rcu port opera rtu sid
用mina做了一个UDP接收的程序,绑定的时候没有指定IP,只是指定了端口。
然后还是在本机连接127.0.0.1和UDP端口号,死活收不到数据。
用TCP/UDP工具发送数据,提示如下:
The virtual circuit was reset by the remote side executing a hard or abortive close. The application should close the socket as it is no longer usable. On a UPD-datagram socket this error would indicate that a previous send operation resulted in an ICMP "Port Unreachable" message.
解决办法:
没有指定IP,就是默认0.0.0.0。
改为在具体的IP地址绑定,例如192.168.0.10,发现能收到数据。
mina:UDP server 收不到数据 The virtual circuit was reset by the remote side ......
标签:ip地址 做了 exec previous rcu port opera rtu sid
原文地址:https://www.cnblogs.com/huiy/p/13336799.html