Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27153

Question about My.Computer.Network.Ping(ip, timeout)

$
0
0
Gentlemen,

I am currently in the process of maintaining a project which I created from the ground up. I won't bore you with the nitty-gritty, but suffice to say that it pings workstations with the intent of determining if they're available. This basically is done to ensure fewer offline workstations are forced to timeout later in the program. The ping is there to save time.

So basically, on one of my networks I have to skip the time saving ping process. That's because all pings fail, and the tool would just stop there every time if we kept the ping feature up and running. My short term solution was skipping that section of the code with an optional checkbox. However, this is obviously not ideal: as it slows down my tool drastically on that network.

The issue is that any ping sent out on this network responds with one line before the ping results:
"Negotiating IP Security."

Then the ping starts as normal. It is my understanding that the My.Computer.Network.Ping process only uses the first line of a ping. Is there any way to force it to either acknowledge and ignore, or just plain skip that Negotiating IP Security line, or wait for two lines of pings? Or can anyone else think of a way around this?

Thanks,

Viewing all articles
Browse latest Browse all 27153

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>