Using 'ipselector' package to get ip address