Add trying connection to the server.

Add trying connection to the server.