全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 573|回复: 7

求助frp客户端文件应该怎么填写?

[复制链接]
发表于 2022-6-19 15:10:16 | 显示全部楼层 |阅读模式
本帖最后由 崇拜技术大佬 于 2022-6-19 15:12 编辑

要实现远程访问本地路由器:ip:88
这个地址


frp服务端已经配置安装完成,用的这个脚本:

  1. wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
  2. chmod 700 ./install-frps.sh
  3. ./install-frps.sh install
复制代码


这是一步一步安装完生成的服务端配置:




这是客户端,应该怎么对应填写?



就是不太明白这种对应服务端怎么填写,画红圈的都不太明白,烦请大佬解答
发表于 2022-6-19 15:19:24 | 显示全部楼层
本帖最后由 huahua101 于 2022-6-19 15:26 编辑

给你推荐个工具

  1. https://github.com/dylanbai8/frpspro/raw/master/FrpsPro.zip
复制代码




# 绑定你的 frps 服务器:
# 1.服务器IP地址或域名 2.密钥 3.端口
# 如网络卡慢,可删除最后一行注释标签“#”开启kcp传输

[common]
server_addr = 8.8.8.8(服务器vps ip)
token =  xxxxxxxxxxxx(你设置的服务端token)
server_port = 5443(服务器通讯端口)
protocol = kcp
# http 端口转发设置
# custom_domains 可以是域名或者服务器 IP
# 如需开启密码访问,删除最后两行注释标签“#”即可

[remote_desktopx]
type = tcp
local_port = 3389[本地3389]
remote_port = 4489[远程用4489访问,远程桌面连接用8.8.8.8:4489连接]
[http_001]
type = http
local_port = 80
custom_domains = www.hostloc.com
[https_001]
type = https
local_port = 443
custom_domains = www.hostloc.com
[http_002]
type = http
local_port = 80
custom_domains = bbs.hostloc.com
[https_002]
type = https
local_port = 443
custom_domains = bbs.hostloc.com
发表于 2022-6-19 15:52:43 | 显示全部楼层
我目前用的HTTP是用域名来分流的

也就是说不用填remote port
但要填custom_domains
 楼主| 发表于 2022-6-19 19:45:10 | 显示全部楼层
感谢大佬们,还不是太清楚
 楼主| 发表于 2022-6-20 12:39:11 | 显示全部楼层

666
如果不绑定域名domains怎么填
发表于 2022-6-20 12:42:04 | 显示全部楼层
崇拜技术大佬 发表于 2022-6-20 12:39
666
如果不绑定域名domains怎么填

不绑定,不用写custom_domains
 楼主| 发表于 2022-6-20 14:25:50 | 显示全部楼层
mbsi 发表于 2022-6-20 12:42
不绑定,不用写custom_domains

直接把这一行删掉吗
发表于 2022-6-20 15:12:36 | 显示全部楼层

对。 你可以自己随便试啊,错了又没什么,连不上而已
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-20 06:48 , Processed in 0.061776 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表