[GH-ISSUE #1683] 在客户端能否添加命令模式,或者web模式,查看连接到真实ip,目前都只看到127.0.0.1 #1334

Closed
opened 2026-05-05 12:50:56 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @hktalent on GitHub (Mar 4, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1683

在客户端能否添加命令模式,或者web模式,查看连接到真实ip,目前都只看到127.0.0.1
思路:

  • 1、服务端得到真实IP,和临时的port,和客户端连接port形成对应关系
  • 2、客户端通过临时port对应关系知道哪些真实ip连接上来了
Originally created by @hktalent on GitHub (Mar 4, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1683 在客户端能否添加命令模式,或者web模式,查看连接到真实ip,目前都只看到127.0.0.1 思路: - 1、服务端得到真实IP,和临时的port,和客户端连接port形成对应关系 - 2、客户端通过临时port对应关系知道哪些真实ip连接上来了
Author
Owner

@fatedier commented on GitHub (Mar 4, 2020):

https://github.com/fatedier/frp/blob/master/README_zh.md#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%9C%9F%E5%AE%9E-ip

参考文档说明,在自己的服务里获取到真实 IP。

<!-- gh-comment-id:594476563 --> @fatedier commented on GitHub (Mar 4, 2020): https://github.com/fatedier/frp/blob/master/README_zh.md#%E8%8E%B7%E5%8F%96%E7%94%A8%E6%88%B7%E7%9C%9F%E5%AE%9E-ip 参考文档说明,在自己的服务里获取到真实 IP。
Author
Owner

@hktalent commented on GitHub (Mar 4, 2020):

@fatedier 我当前转发的是tcp不是http呢
算了,我还是自己开发代码来实现这个关联关系吧

<!-- gh-comment-id:594512510 --> @hktalent commented on GitHub (Mar 4, 2020): @fatedier 我当前转发的是tcp不是http呢 算了,我还是自己开发代码来实现这个关联关系吧
Author
Owner

@fatedier commented on GitHub (Mar 4, 2020):

Proxy Protocol

<!-- gh-comment-id:594516566 --> @fatedier commented on GitHub (Mar 4, 2020): Proxy Protocol
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1334
No description provided.