2

我在 localhost 上测试它可以工作 在 RTPS.ini/ TCP.ini (local IP) /using info repo.ior 之后测试

我测试了用 VPN 连接两台 PC(PC_A 上的发布者和 PC_B 上的订阅者,PC_A 运行 DDS 存储库)它不起作用。NAT 被禁用。Windows Defender 正在运行

我在两台 PC rtps.ini 上使用以下用于 localhost 测试的相同 ini 进行 VPN 测试

[common] 
DCPSGlobalTransportConfig=$file 
DCPSDefaultDiscovery=DEFAULT_RTPS 

[transport/the_rtps_transport] 
transport_type=rtps_udp

PC_A 和 PC_B 上的 tcp.ini

[common]
DCPSDebugLevel=0
DCPSInfoRepo=corbaloc::192.168.56.9:12345/DCPSInfoRepo  # PC_A IP 192.168.56.9
DCPSGlobalTransportConfig=config1

[config/config1]
transports=tcp1

[transport/tcp1]
transport_type=tcp
4

1 回答 1

1

以下为我工作

控制面板 -> 允许应用程序通过 Windows Defender 防火墙进行通信

根据您的设置允许域/私有/公共以进行以下操作

dscpinforepo.exe

订阅者.exe

发布者.exe

文件和打印机共享

控制面板->\网络和Internet\网络和共享中心\高级共享设置

允许使用的网络类型(域/公共/私有)共享文件

于 2020-11-20T10:37:03.583 回答