Fixed error checking for server and client connections. Still having a problem where the server is unable to connect to the specified server despite passing the same information and using the same code as the client.