Update connection.py

Set URL to public hostname.