Send() does not respond when the working PC has an IP address of 192.168.10.10 and the NIC is disabled. When the NIC is enabled, it responds with the specified timeout value.
Is this behavior correct?
If correct, how do I return control from Send()?
There is no connection to the ping destination "172.17.10.20".
using System.Net.NetworkInformation;
Ping sender = new Ping();
sender.Send("172.17.10.20", 1*1000); // If you disable nic from this function, you will not get a response
environment:
Thank you for your cooperation.
c# windows
NIC…Network Interface Card or Network Interface Controller abbreviation
The parts/features that manage the IP network processing itself and correspond to your IP itself, so
It may interfere with the fundamentals of the machine's networking capabilities.
© 2024 OneMinuteCode. All rights reserved.