You need to sign in to do that
Don't have an account?
Ashwin Kc
How to capture IP Address in lightning Component
Hi
I have scnerio where I need to capture IP address of current User in Lightning Community, is any way standard way where I can capture IP address inside Lightning Components.
I have seen third party tools like - https://www.ipify.org/ to get Ip address
Any recommendations are appreciated
Thanks
I have scnerio where I need to capture IP address of current User in Lightning Community, is any way standard way where I can capture IP address inside Lightning Components.
I have seen third party tools like - https://www.ipify.org/ to get Ip address
Any recommendations are appreciated
Thanks
I tried with your api but i didnt response so used "https://www.trackip.net/ip?json" api instead
Make sure before you execute ,create a remote site for the above url
Here is the code
Lightning component :
Lightning Js:
Lightning Js Helper :
Controller :
Lightning App: Let me know if you need further help.
Thanks and Regards,
Shiva RV
ip of a guest user?