-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ping class acts differently on Linux vs Windows #99838
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Using Wireshark I can confirm that the ping request is properly formatted, and an immediate Time-to-live exceeded message is returned by my router. However, my application returned a timeout status 5 seconds after the initial request. It seems like the Ping class is not processing the message from the router. |
cc @dotnet/ncl |
looks like dup of #73232 |
I am not sure. That ticket is talking about containers. My issue is on Linux mint 21.3,. Net 8 with sudo for raw socket access. |
do you have any simple repro you can share @rjrizzuto? That would simplify the investigation. |
(and what .NET version do you use) |
dotnet --version reports 8.0.103 This is the simple test code I wrote: using System.Net.NetworkInformation; var X = new Ping(); Here's what I see on my Linux system: ay@Green-lantern:~/Dotnet Projects/Test/Test/bin/Release/net8.0/linux-x64$ sudo ./Test |
copy paste error after "Here's what I see on my Linux system:"? |
My bad. It's fixed now. |
On Windows 11, the same code outputs this: 192.168.86.1 That is the expected behavior. |
fixed by #99875 |
When I set a TTL of 1 (to implement traceroute functionality), I get TimedOut with an address of 0.0.0.0 on Linux. On Windows, I get the expected TtlExpired with the IP address of my router.
The text was updated successfully, but these errors were encountered: