mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #5121] [Feature Request] frpc api 可以获取 xtcp是否p2p成功吗?现在好像只能看日志确认visitor结果 #4007
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#4007
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 @litrycn on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/fatedier/frp/issues/5121
Describe the feature request
frpc api 可以知道 xtcp是否p2p成功吗?现在好像只能看日志确认visitor结果
http://xxx.com/api/status 看不到xtcp、stcp、sudp的相关数据
Describe alternatives you've considered
No response
Affected area
@litrycn commented on GitHub (Jan 10, 2026):
cli status 也看不到p2p结果
./frpc_linux_amd64 status -c ./frpc.json
@litrycn commented on GitHub (Jan 14, 2026):
使用场景:vps是1M的小水管,目前在多地部署了frpc,检查发现 p2p打洞都是部分能打通。
比如:A、B、C三个,AC点对点失败,但是 AB、BC可以点对点成功,
目前可以通过 xtcp将A的3389端口转发到B的13389端口,B再通过13389端口转发到C13389端口,实现 在C地访问A的windows电脑
现在要获取结果比较麻烦,需要单独部署日志检查服务
在vps 用php调用每一个节点的成功记录,聚合结果
最终获取到点对点的结果:
{
"nat-1": [
"nat-2",
"nat-4",
],
"nat-2": [
"nat-1",
"nat-4",
"nat-aoc"
],
"nat-4": [
"nat-1"
]
}
在nat-4家里 访问nat-aoc,可以通过 nat-4 -> nat-1 -> nat-2 -> nat-aoc ,结合frpc webServer 加载proxies 实现 p2p访问
nat-aoc与nat-1实际上也可以点对点连接的,只是nat-aoc是windwos不好获取log结果,现在使用nat-4 -> nat-1 -> nat-aoc 不通过frps服务器节点实现 点对点对点 中继访问
@litrycn commented on GitHub (Jan 19, 2026):
用ai自行优化了