allowing with_connection to connect to a specified IP address