First conclusion
In the router control panel, set up multiple computers (Win10) remotely 端口转发规则
through the router WAN口ip+外部端口
.
Network environment analysis
Network topology diagram
As shown in the above figure, the upper IP is a 172.18.56.X
segment, and the next layer passes through a router, and the IP is all 192.168.1.X
segments.
The device whose 需求
IP is the 172.18.56.a
segment currently needs to be the device whose remote IP is the 192.168.1.x
segment.
Specific operation
Enter the control panel of the router in the picture above (take TP-Link as an example).
(1) Check the IP address of the WAN port of the router.
(2) Setting DMZ主机
, select IP as the IP of the device you want to remote (only one can be added here)
(3) Set up virtual server
Add the IP of the device you want to remote.
It should be noted 内部端口要选择3389
that this is the remote service port, and the external port can be selected to be unoccupied.
Remote operation (mstsc) effect
If the remote is set to DMZ主机
the IP, you can access without adding an external port, such as
172.16.58.27
If the remote host is another host, you can ip:端口
do it remotely in the following ways, such as:
172.16.58.27:6666