简体   繁体   English

是否可以从 http(s) 请求的发件人到 firebase rest747A5DA5ZE7DA05Z

[英]Is it possible to get the public ip address from the sender of an http(s) request to the firebase rest api?

I'm currently working on a Godot multiplayer project where players will make HTTP(s) requests to a REST API I have set up with Firebase's cloud firestore database.我目前正在开发一个 Godot 多人游戏项目,其中玩家将向 REST API 发出 HTTP(s) 请求,我已经使用 Firebase 的云 Firestore 数据库进行了设置。 I'm wondering if it is possible to get the IP address of whoever sent the request, and if so, how?我想知道是否有可能获得发送请求的人的 IP 地址,如果可以,如何获得?

The database REST API is not going to reflect back to you any IP addresses.数据库 REST API 不会向您反映任何 IP 地址。 You will need to instead provide your own backend API for the clients to call if you want to collect their IPs.如果您想收集他们的 IP,您将需要提供您自己的后端 API 供客户调用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM