mina:UDP server 收不到数据 The virtual circuit was reset by the remote side ......
Posted huiy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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,发现能收到数据。
以上是关于mina:UDP server 收不到数据 The virtual circuit was reset by the remote side ......的主要内容,如果未能解决你的问题,请参考以下文章