You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取Google Cloud Functions V2的调用者IP?实测多种方法均返回空值

Google Cloud Functions V2 调用者IP获取问题

目前没有有效方法获取Google Cloud Functions V2的调用者IP,所有尝试的请求头与属性均返回null。

已尝试的请求头与属性包括:

  • X-Client-IP
  • X-Forwarded-For
  • CF-Connecting-IP
  • Fastly-Client-Ip
  • True-Client-I
  • X-Real-IP
  • X-Cluster-Client-IP
  • X-Forwarded、Forwarded-For、Forwarded
  • appengine-user-ip
  • req.connection.remoteAddress
  • req.socket.remoteAddress
  • req.connection.socket.remoteAddress
  • req.info.remoteAddress
  • Cf-Pseudo-IPv4

内容的提问来源于stack exchange,提问作者Vidican Vlad-Radu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 01:05:18