Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A way to get the IP address of a user in Firebase Authentication?

Does Firebase log the IP address that the user last signed in from?

The reason that I need it is that I want to try to broadly segment my users by location, and IP address will usually help with this.

But I'm not sure if the data exists in Firebase or is query-able.

like image 212
RoccoB Avatar asked Dec 01 '25 10:12

RoccoB


1 Answers

Nope. Firebase Authentication does not make the IP address of the user available. See Firebase JavaScript SDK - Retrieve Users IP Address

But what you describe sounds like a use-case better suited to Firebase Analytics/Google Analytics for Firebase, which does expose the user's location (based on a lookup from their IP address).

like image 74
Frank van Puffelen Avatar answered Dec 04 '25 00:12

Frank van Puffelen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!