尝试绑定到Vista和Windows 2008上的套接字时出现错误10013 [英] Error 10013 when trying to bind to a socket on Vista and Windows 2008

查看:176
本文介绍了尝试绑定到Vista和Windows 2008上的套接字时出现错误10013的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi

我有一个绑定到套接字的程序(C ++,.net)(rawSocket = socket(AF_INET,SOCK_RAW,IPPROTO_ICMP));该程序可以在XPSP2上正常运行,但是在Vista SP1或W2008 SP2上运行该程序时,调用将失败,并显示错误10013(访问被拒绝).有任何想法吗?

谢谢
Chris

Hi

I have a program (C++, .net) that binds to a socket (rawSocket = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP)); the program works fine on XPSP2, but when running the same on Vista SP1, or W2008 SP2, the call fails with the error 10013 (access denied). Any ideas anyone?

Thanks
Chris

推荐答案

如果使用,则需要确保以管理员权限运行原始套接字.
You need to make sure to run it with administrator privilages if you are using raw sockets.


这篇关于尝试绑定到Vista和Windows 2008上的套接字时出现错误10013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆