[GH-ISSUE #1832] Stcp怎么获取客户端地址 #1444

Closed
opened 2026-05-05 12:55:00 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @wangwanzhong on GitHub (May 31, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1832

我在局域网有一个web服务,为了只有内部人可以使用,我启用了stcp,这种情况可以获取到客户端真实 IP地址吗

Originally created by @wangwanzhong on GitHub (May 31, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1832 我在局域网有一个web服务,为了只有内部人可以使用,我启用了stcp,这种情况可以获取到客户端真实 IP地址吗
Author
Owner

@fatedier commented on GitHub (May 31, 2020):

目前获取到的也是 frpc 所在机器的 IP(还有可能是外网 NAT 转换过的)。你这种场景如果真的需要严格的管理,还是在 web 服务上加上权限验证的机制比较合适。

<!-- gh-comment-id:636470418 --> @fatedier commented on GitHub (May 31, 2020): 目前获取到的也是 frpc 所在机器的 IP(还有可能是外网 NAT 转换过的)。你这种场景如果真的需要严格的管理,还是在 web 服务上加上权限验证的机制比较合适。
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#1444
No description provided.