Create connection.py

this guy will prompt the user for connection type and return local_IP or public_IP. You're welcome.