Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通过 XirSys API,我看不到一种简单地获取我的 IP 地址的方法,因为它可以从 XirSys 中看到。
是否可以通过公开的 API 获得?
XirSys STUN 服务器正是这样做的,但这不是您可以从 HTTP 请求中请求的东西。但是,如果您使用的是中间件服务器(出于安全考虑),那么您几乎可以使用任何语言来执行此操作。参见例如:如何在 PHP 中获取客户端 IP 地址?