No response when ping with NIC disabled

Asked 2 years ago, Updated 2 years ago, 45 views

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:

  • Windows 10 64bit
  • Visual Studio 2017
  • C#

Thank you for your cooperation.

c# windows

2022-09-30 16:11

1 Answers

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.


2022-09-30 16:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.