how to contect to a server