public static async Task<ServerInformation> TryToGetInformationDirectAsync(string ip, int portC) {
var requestUri = $"http://{ip}:{portC}/INFO";
try {
return PrepareLan(JsonConvert.DeserializeObject<ServerInformation>(await LoadAsync(requestUri)), ip);
} catch (WebException e) {
Logging.Warning($"Cannot get server information: {requestUri}, {e.Message}");
return null;
} catch (Exception e) {
Logging.Warning($"Cannot get server information: {requestUri}\n{e}");
return null;
}
}