Bug 53268 - System.Net.NetworkInformation.Ping Always return ttl expired when ip is not assigned to any host
Summary: System.Net.NetworkInformation.Ping Always return ttl expired when ip is not a...
Status: RESOLVED DUPLICATE of bug 53267
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Marek Habersack
URL:
Depends on:
Blocks:
 
Reported: 2017-03-12 18:04 UTC by Emin Kokalari
Modified: 2017-03-12 23:15 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 53267

Description Emin Kokalari 2017-03-12 18:04:28 UTC
System.Net.NetworkInformation Ping always return TTL Expire when ip is not assigned to any host

PingReply Reply = await pingo.SendPingAsync(ip-adress, timeout, buffer, options);
                Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                switch (Reply.Status)
                {
                    case IPStatus.Success:

                        Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;

                    case IPStatus.TimedOut:

                        Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;

                    case IPStatus.TimeExceeded:

                        Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;

                    case IPStatus.DestinationHostUnreachable:


                       Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;

                    case IPStatus.DestinationNetworkUnreachable:

                        Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;

                    case IPStatus.DestinationUnreachable:

                        Toast.MakeText(Activity, Reply.Status.ToString(), ToastLength.Long).Show();
                        break;
                }


For example i add a ip adress that is not assigned to any device and is doesnt return : Destination Host Unreachable or something else , but only ttl expired !

Whats wrong ?
Comment 1 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-12 23:15:26 UTC

*** This bug has been marked as a duplicate of bug 53267 ***