首先开启远程桌面 此电脑 -> 右键 -> 属性 -> 远程设置
服务端 frps.ini
[common] bind_port = 7000
客户端 frpc.ini
[common] server_addr = X.X.X.X server_port = 7000 [RDP] type = tcp local_ip = 0.0.0.0 local_port = 3389 remote_port = 7001 [web] type = http local_port = 8080 custom_domains = xxx.com
winsw.xml
<service>
<id>frpc</id>
<name>frpc</name>
<description>注册mstsc远程桌面到frps服务器</description>
<executable>frpc</executable>
<arguments>-c frpc.ini</arguments>
<logmode>reset</logmode>
</service>
安装服务
winsw install
允许未登录 启动服务
选择服务 -> 右键 -> 登录, 配置登录用户
手把手教你用frp实现内网穿透,进行远程桌面和http访问 https://www.jianshu.com/p/a6e9627dbe29
用winsw让任何Windows程序都能运行为服务 https://www.jianshu.com/p/fc9e4ea61e13