例如,让我们假设以下内容:
您的可编程设备在端口上工作22
并具有IP192.168.1.5
您的公共IP是 122.176.11.55
Then you can go into your router's setting and forward a WAN port (for eg, 8022
) to 192.168.1.5:22
.
Now, you can remotely access the device from anywhere through the internet by accessing 122.176.11.55:8022
instead of 192.168.1.5:22
in your IDE.
Keep in mind that unless you have a static IP, your public IP can change at any time, in which case you should check out dynamic DNS services.
NOTE: unless your device has some method of authentication, someone with malicious intent will almost certainly find access to it on the open web. See below for safe alternative.
保持PC(或树莓派或类似设备)连接到网络,然后通过诸如SSH之类的安全方式远程访问该PC ,然后通过LAN通过该设备对设备进行编程。
即使您的设备不使用TCP或UDP,这也具有工作的额外优势:)
有点乏味,是的。但是安全。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句