finish the link with client and server