我在 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