connecting to a server works