mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3944] 使用NPM+FRP,公网ip可以成功,localhost失败? #3132
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#3132
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 @A-sunny-boy on GitHub (Jan 22, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3944
Bug Description
阿里云作为公网服务器,使用frp对内网的http服务进行代理,然后在阿里服务器上使用NPM根据域名进行流量转发。
阿里云frps配置
内网frpc配置
使用NPM将流量转发到阿里云服务器的公网ip时,可以使用在公网使用

my.domain.xyz访问到内网服务,NPM配置如下:使用NPM将流量转发到localhost或127.0.0.1时,出现502。


请问如何内内网ip访问呢?
frpc Version
0.53.2
frps Version
0.53.2
System Architecture
linux/amd64
Configurations
frps
......
vhostHttpPort = 1111
......
frpc
Logs
No log
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Jan 23, 2024):
服务端配置参数写错,先阅读文档...
@xqzr commented on GitHub (Jan 28, 2024):
Try
::1@ezewu commented on GitHub (Feb 1, 2024):
解决没有,我也碰到这问题,外网可以访问,用内网就不行
@github-actions[bot] commented on GitHub (Feb 23, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.