Added check if server is reachable, added network class