The below Script helps you to get Public IP-Address.This script uses the third party website to get the IP-Address
The script works on both Logged-in and System User
---