Get public ip from command line