Set 5 seconds timeout for local server connection.