Bonky,
There are, on this board, a lot of examples of scripts where the IP address is disected and analyzed for subnets. If your VPN is limited to a particular subnet, then it can be done. Another method posted on this board is with the output of IPCONFIG piped through FIND.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.