RemotePing (netstandard2.0) is C# library for pinging host.
using System;
using DenganID.Networking.RemotePing;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
var host = "8.8.8.8";
var ping = new Ping();
var isAlive = ping.IsAlive(host);
Console.WriteLine(host+ " alive: " + isAlive);
}
}
}
Install-Package DenganID.Networking.RemotePing -Version 1.0.1
dotnet add package DenganID.Networking.RemotePing
<PackageReference Include="DenganID.Networking.RemotePing" Version="1.0.1" />
You can always contribute to this package and create pull requests. Just give me a note
This package is released under the MIT License (MIT). Please read LICENSE.md