An address incompatible with the requested protocol was used

[已解决] An address incompatible with the requested protocol was used

5
[软件及编程 > C#]
使用Socket的时候,发生了这个错误:
An address incompatible with the requested protocol was used

谁知道这是怎么回事?
提问时间:2010/4/22 23:37:16 | 提问者:GaLiJiKuai | 悬赏:5 | 浏览:830
最佳答案
首先看一下IPAddress定义对不对,测试的时候可以使用IPAddress.Any监听所有的IPAddress。
另外如果出现了下面这个错误(仔细看错误详情):
ou are trying to connect to an IPv6 address / IP without the IPv6 stack installed.

说明你没有安装IPv6协议,在“连接属性”中添加一下就行了。
回答时间:2010/4/22 23:41:47 | 回答者:zsu
其他参考答案(0)
提交失败!请检查错误!错误信息:

注:以上所有信息由网友提供,仅供交流、参考,均不代表盛派网络言论,如果有任何问题或不妥,请立即联系我们

以下信息或许对您有用: