C# opening unavailable network path with Process.Start() C# opening unavailable network path with Process.Start() windows windows

C# opening unavailable network path with Process.Start()


In order to load the file, Windows must first make a file sharing connection to the machine. First it looks up the UNC name to get the IP address. If the machine doesn't exist, it can't get an IP address, and it fails quickly (as in the first example). If it does exist (as in the second example), Windows must then attempt to connect.

So why does it take two minutes when the time out is supposed to be 30 seconds? One possibility is that it retries a few times. Another possibility is that you have different network protocols and it has to try each one.


A faster way to check if the computer is on would be to ping the computer. Specify any timeout you like. There should be a response within a few seconds...

I guess the slow response has to do something with that the name of the turned off computer is still known in the network and associated with an ip. Then a longer timeout is chosen since the computer should be there...