How to check a network server is available

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Anybody knows how to check a network server is available (pingable)

Many thanks in advance.
 
Hi Li Pang,

Will you try this and message us if it works, I am in doubt, because I
thought that Ken did distribute this, but he did not send it to you.

Dim hostInfo As System.Net.IPHostEntry
hostInfo = System.Net.Dns.GetHostByAddress("xxx.xxx.xxx.xxx") ' a fixed
server IP
MessageBox.Show(hostInfo.HostName)

Cor
 
Hi Li Pang,

If you than test the name of the server it should go is my thought than or
does it give the name anyway from the registry or someting?.

Cor
 
Hi Herfried K. Wagner

Is PingHost method is available in VB
The pinghost function is similar to Cor's VB codes, and I can't figure out how to manage if the server is not available
 
* "=?Utf-8?B?TGkgUGFuZw==?= said:
Is PingHost method is available in VB?
The pinghost function is similar to Cor's VB codes, and I can't figure
out how to manage if the server is not available.

You will have to translate the C# code to VB.NET, for example by using
these converters:

<http://www.remotesoft.com/>
-> "Octopus"

C# -> VB .NET Converters:

<http://www.kamalpatel.net/ConvertCSharp2VB.aspx>
<http://csharpconverter.claritycon.com/Default.aspx>
<http://www.ragingsmurf.com/vbcsharpconverter.aspx>
<http://www.aspalliance.com/aldotnet/examples/translate.aspx>
 
Hi Herfried,

Now I remember me again how I got this code, I translated it.

That was what Li said.

I have dumped it now from my HKW system.

Cor
 
Back
Top