Demand: Friends thinkRemotely access your company's computers from your home(If the company has a public IP address, you can ask the network administrator to create a new port mapped to your private computer, and you can directly use Microsoft mstsc to access it in the form of a public IP: port), after understanding the needs of friends, if you use TeamViewer, Sunflower feels that it is not stable and safe, and see that the network is through FRP intranet penetration to achieve remote desktop connection access, but you need to purchase a server to build FRP services.
First, purchase a cloud server with CentOS7 and install Docker service. (omitted)
Log in to the server and create a new one/docker/frp/frps.iniThe configuration file is as follows:
Create a new FRP service container with the following command:
After successful execution, we can access the FRP dashboard through port 7002 as shown below:
Download the FRP client to your company computer and download itThe client version should be the same as the server version, the download address is as follows:
The hyperlink login is visible.
Unzip the package, and then modify the frpc.ini configuration as follows:
Then execute the command in the current folder as follows:
Prompt:If an error is reported at startup, delete the comment!!!
Connect the mobile phone WiFi network to simulate the company network environment on the FRP client computer, and then use the remote desktop connection tool to access port 7003 of the FRP service public IP address, and find that it can be accessed normally, as shown in the figure below:
If you want to boot up, you can use WinSW to set frpcRegister as a Windows service, download winsw address:The hyperlink login is visible.
Move WinSW.NET461.exe to the frpc.exe directory and create a new winsw.xml file with the following configuration:
Finally, run the CMD command as an administrator, go to the frpc.exe directory, install and start the service, and the command is as follows:
(End)
|