我正在尝试测试来自RakNet的 NATCompleteClient 和 NATCompleteServer 示例。我能够让 NATCompleteServer 进入更新循环阶段,但我无法让 NATCompleteClient 连接到服务器:
Do you have a server running the NATCompleteServer project? (y/n): y
Executing UPNPFramework
Failed UPNPFramework
Proceeding to next stage.
Executing NatTypeDetectionFramework
Failed NatTypeDetectionFramework
Proceeding to next stage.
Executing NatPunchthoughClientFramework
Enter IP of system NatPunchthroughServer, or press enter for default:
SOMESERVERIP
Enter port of system NatPunchthroughServer, or press enter for default: 61111
Connecting...
Enter RakNetGuid of the remote system, which should have already connected
to the server.
Or press enter to just listen.
702561543119132154
Calculating port stride from SOMESERVERIP|61111
INCAPABLE_PORT_STRIDE. My external ID is MYEXTERNALIP|50000
Starting ID_NAT_PUNCHTHROUGH_REQUEST to guid 702561543119132154.
Punchthrough attempt to guid 702561543119132154 failed due to
ID_NAT_TARGET_NOT_CONNECTED.
Failed: ID_NAT_TARGET_NOT_CONNECTED
Failed NatPunchthoughClientFramework
Proceeding to next stage.
Executing Router2Framework
Failed Router2Framework
Proceeding to next stage.
Executing UDPProxyClientFramework
Failed UDPProxyClientFramework
Connectivity not possible. Exiting
我在不在 NAT 后面的数字海洋水滴上运行 NATCompleteServer。另外,我在 canyouseeme.org 上的 droplet 上进行了测试,它显示服务器上的端口 61111 没有被阻止。
我该如何解决这个问题?
注意:另外,我知道自 Facebook 收购 RakNet 以来,它已经死了。既然我正在尝试将 RakNet 集成到我的项目中,那么提出问题和寻求支持的最佳地点是什么?