Pinging a Windows Computer with Xam.Plugin.Connectivity

Hitman.ptHitman.pt PTMember
edited June 2016 in Xamarin.iOS

Hi, I'm having trouble pinging my computer using this plugin https://www.nuget.org/packages/Xam.Plugin.Connectivity/
I have a function something like this
private async void someFunction(string ipAddress)
{
//someStuff
bool result = await CrossConnectivity.Current.IsReachable(ipAddress); //for example Windows PC = 192.168.1.3 and Router = 192.168.1.1
Console.WriteLine(result.ToString());
}

I always get false if it's a windows PC/iPhone or MAC but my router, ShareCenter I get the correct result.
Is there a fix? A way around? I'm unable to using the Ping.Send(ipAddress); I always get an error "Operation is not valid due to the current state of the object."

Any help?

Sign In or Register to comment.