Automatically connect server/client