gpt4 book ai didi

c++ - VS2008 远程调试器 : An attempt was made to access a socket in a way forbidden by its access permissions

转载 作者:可可西里 更新时间:2023-11-01 10:46:55 25 4
gpt4 key购买 nike

我正在尝试为运行 XP SP3 的 VirtualBox VM 设置远程调试,遵循 this tutorial .

在 guest 操作系统上,我启动了远程调试服务器:

enter image description here

我已验证我可以使用 netcat 连接到服务器:

C:\Users\sashoalm>ncat.exe myorgani-1bd08e 4015
Hello?
W Çclose: No error

但是当我尝试从Debug->Attach to Process... 对话框连接时(我将 myorgani-1bd08e 作为 Qualifier),我得到这个错误:

Unable to connect to 'myorgani-1bd08e'. An attempt was made to access a socket in a way forbidden by its access permissions.

MSDN docs关于此错误,请这样说:

WSAEACCES 10013 Permission denied. An attempt was made to access a socket in a way forbidden by its access permissions. An example is using a broadcast address for sendto without broadcast permission being set using setsockopt(SO_BROADCAST). Another possible reason for the WSAEACCES error is that when the bind function is called (on Windows NT 4.0 with SP4 and later), another application, service, or kernel mode driver is bound to the same address with exclusive access. Such exclusive access is a new feature of Windows NT 4.0 with SP4 and later, and is implemented by using the SO_EXCLUSIVEADDRUSE option.

为什么会出现此错误?

最佳答案

最后,原来是防火墙在我自己的电脑上阻止了 Visual Studio 建立出站连接(devenv.exe 有一个出站规则,我不知道它是如何到达那里的)。

关于c++ - VS2008 远程调试器 : An attempt was made to access a socket in a way forbidden by its access permissions,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20572513/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com