Fixed server, so that it would send the response over the socket, instead of the server