Connect server and client