首页 > 其他 > 详细

mina:UDP server 收不到数据 The virtual circuit was reset by the remote side ......

时间:2020-07-18 21:53:24      阅读:292      评论:0      收藏:0      [点我收藏+]


用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 ......

原文:https://www.cnblogs.com/huiy/p/13336799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!