mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4130] 没有域名只有公网ip怎么访问内网web服务 #3260
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3260
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mundane799699 on GitHub (Apr 7, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4130
Bug Description
没有域名只有公网ip怎么访问内网web服务?我翻了一下之前的issue好像说是可以的,但是我自己没成功。我在本地windows用nginx起了一个80端口的服务,就是默认的那个页面。然后访问公网ip:6000,显示无法访问此网站。阿里云的安全组6000端口和7000端口已打开,firewall防火墙的6000端口和7000端口也已经打开。
frpc Version
0.56.0
frps Version
0.56.0
System Architecture
server端linux/amd64,客户端windows
Configurations
frps.toml
frpc.toml
Logs
frps:
frpc:
Steps to reproduce
...
Affected area
@Jandaes commented on GitHub (Apr 9, 2024):
我也没成功、也是http穿透!没有配置域名的话服务都启动不了
@mundane799699 commented on GitHub (Apr 9, 2024):
我服务是能启动的
@peace4j commented on GitHub (Apr 10, 2024):
没有域名的情况下,使用tcp proxy来代理就可以了,把你的内网的http服务当成一个标准的tcp应用来配置。
@Jandaes commented on GitHub (Apr 10, 2024):
多谢、我改成tcp了的确就可以了、这样也可以配多个了
@mundane799699 commented on GitHub (Apr 17, 2024):
@fatedier 你好,我测试了一下。tcp代理,如果是用6000端口就会失败,换6001或者6002等端口就能成功。应该是个bug。比如像这样的就会失败。
@wjx0428 commented on GitHub (Apr 24, 2024):
你好解决了吗?
@mundane799699 commented on GitHub (Apr 24, 2024):
解决了,端口不能用6000
@mundane799699 commented on GitHub (Apr 24, 2024):
端口不能用6000
@TimerChen commented on GitHub (Apr 26, 2024):
因为你设置了vhostHTTPPort,两个端口重复了
@mundane799699 commented on GitHub (Apr 26, 2024):
并不是,我改成6001就可以,6000就是不行
@wk989898 commented on GitHub (May 31, 2024):
6000是非安全端口,使用chrome无法访问。
@Jandaes commented on GitHub (May 31, 2024):
收到、谢谢!祝好
@aCoo4ie commented on GitHub (Aug 30, 2024):
其他浏览器也访问不了!
@aCoo4ie commented on GitHub (Aug 30, 2024):
对,我也复现了,在0.60的最新版中也是这样的!
@Mr-wangwei commented on GitHub (Nov 17, 2024):
本地必须80端口才可以吗?
@shaunhurryup commented on GitHub (Jan 3, 2025):
起不来是因为 frps 把 port 占了,frpc 连不上。
# vhostHTTPPort = 8080这行remotePort = 8080我这样是成功的
@caoxiangqian commented on GitHub (Feb 27, 2026):
换成了一个大于10000的端口成功了
@Jandaes commented on GitHub (Feb 27, 2026):
收到、谢谢!祝好