Storing client's IP address in Firebase -


as far know there no information available browser find out client's ip address without making call resource.

is there way store client's ip address? mean in similar way firebase.timestamp placeholder works.

although i've heard there ways clients determine , report ip address, relying on client side code report ip address opens ability run custom client side code report wrong ip address.

the secure way of keeping track of clients' ip addresses either involve having server, or firebase having special function, when called client, causes firebase's server grab client's ip address , save you.

my recommendation run simple server can take post request. server needs able verify user request coming from, , able accurately grab client's ip address , save on firebase.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -