How to get users ip address

hello, i have built a app where users need to login. I collect users device information and some basic information through device utilities extension but i want ip address of the users to store in my firebase bucket. So, how can i get the ip address of signed in users.

Use http://ip-api.com/json