Fixed client stuff to connect to server