我正在做一些移动项目,需要与两个设备的P2P通信。
然后我就遇到了问题。(因为智能手机很少有公网ip)
我找到了一些答案。这是'UDP打孔‘。
我想我对“UDP打洞”100%的概念有所了解,并写了一些代码。但它不起作用。
这就是我的处境。
Device A connected NAT(A) for Wi-Fi.
Device B connected NAT(B) for Wi-Fi.
NAT(A) and NAT(B) is different one.
Relay Server S bind socket and waiting for devices. (S is W
我正在尝试使用数字海洋教程安装vpn ( PPTPD)服务器。除了我不知道remoteip ip/range是什么之外,一切看起来都很简单。是不是我应该从服务器上看/scan呢?在教程中写着
localip 10.0.0.1
remoteip 10.0.0.100-200
Where localip is IP address of your server and remoteip are IPs
that will be assigned to clients that connect to it.
我假设localip是我用来连接到服务器的Ip地址。但是,我不知道远程Ip是什么,因为数字