This demo project includes a custom function in the Procedures worksheet that allows get the public (WAN) IP address of the PC that executes the function (Server or Client station).
Credits: https://stackoverflow.com/questions/8299278/get-wan-ip-using-vbscript
Platform: Windows and Windows Embedded
IWS Version: v8.0+SP2+Patch1
Download link: https://schneider-electric.box.com/s/anpqryzpstz6fphlgedhdphmwk2gdlww