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



用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,发现能收到数据。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM