Obtain site visitor ip then show them their ip

Is there a way with code to obtain a site visitors ip then show that ip to them? I’m trying to make a vpn ad, I am also aware that ips Change I guess I’m trying to tell if they are using a vpn or not and if not tell them to

Hey!

Check out this article on getting users’ IP:

https://www.wix.com/corvid/forum/community-discussion/user-ip-address-finally-resolved

In general, this is a popular request here on the forum so you can browse to find a lot of information!

I actually had found that post shortly after making this post thank you. I ended up going a different route