mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #3927] [Feature Request] 请问tcp转发时能否获取到真实的公网ip? #3117
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#3117
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 @seepine on GitHub (Jan 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3927
Describe the feature request
我内网有服务器A,需要客户电脑B的tcpClient去连A的tcpServer,我通过云服务器G搭建frps,A搭建frpc,转发tcp端口5000,然后B通过公网ip+5000端口连接,能够成功连到A了,但是A识别到的ip是127.0.0.1,毕竟在A的tcpServer看来,是本机frpc发起的连接,而我需要让A的tcpServer识别出是公网ip连接过来的,请问frp目前可以实现吗或以后是否会实现,或者有没有其他方案可以解决
Describe alternatives you've considered
No response
Affected area
@xqzr commented on GitHub (Jan 12, 2024):
tcpServer 自行实现
Proxy Protocol与 frpc 对接https://gofrp.org/zh-cn/docs/features/common/realip/#proxy-protocol
@wuai1024 commented on GitHub (Jan 18, 2024):
你这个端口看起来是群晖的吧,需要先用nginx接受转发,然后在DSM上再设置下。
@github-actions[bot] commented on GitHub (Feb 9, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.