determineconnectionTest