By accessing the website and accepting the Cookie Policy, you agree to use the cookies provided by the Site in accordance with to analyze traffic, remember your preferences, and optimize your experience.

标签 - frp

frp teamviewer 远程桌面    2019-08-29 19:55:06    267    0    0

必要条件:必须有一个公网服务器

frp是一个开源的端口转发工具,中文使用说明及下载地址在这里  https://github.com/fatedier/frp/blob/master/README_zh.md

TeamViewer有一个功能,就是允许Lan直连,就是说允许在局域网内部使用,而不经过TeamViewer的服务器,这就为我们提供了思路。

方案图:

服务端(frps.ini)的配置:

[common]
bind_port = 7000

端口可以随便改,防火墙记得要开放此端口和5938端口

被控端(frpc.ini)配置:

[common]
server_addr = xx.xx.xx.xx  这是你的服务器外网IP
server_port = 7000
[rdp]
type = tcp
local_ip = 127.0.0.1
local_port = 5938
remote_port = 5938
​

被控端开启frpc方式:

新建一个快捷方式,内容为 %comspec% /c  "frpc.exe -c frpc.ini"

这是使用配置文件的方式运行,当然frpc.exe也是支持命令行参数的,具体可以输入frpc --help查看

服务端的开启方式也是类似

最后,记得开启TeamViewer的允许Lan连接,控制端TeamViewer的ID位置输入服务器的IP,密码是被控端的密码。

尽情使用吧