in reply to Read hostdomain over VPN

The following is my partial solution to get the VPN information:

use Sys::Hostname::FQDN qw(asciihostinfo); my ($name,$aliases,$addrtype,$length,@addrs)=asciihostinfo(); print "Local IP:" . $addrs[0] . "\n"; print "VPN IP:" . $addrs[1] . "\n";

On my test machine it provides correctly the IP of the VPN. To get more information, I could call some API on the web but IP should suffice."