Monday, May 28, 2012

Ping in VB.Net

I found two ways to Ping from vb.net.
A simple:
 Dim txt As String = Now + " - " + txtIPaddress.Text + " - "
 If My.Computer.Network.Ping(txtIPaddress.Text) Then
     Debug.Print(txt + "success")
 Else
     Debug.Print(txt + "no reply")
 End If

And a more thorough where you get more data back in PingReply:

   
  Dim txt As String = Now + " - " + txtIPaddress.Text + " - "
 Dim zz As System.Net.NetworkInformation.PingReply
 Dim xx As New System.Net.NetworkInformation.Ping
 zz = xx.Send(txtIPaddress.Text)
 Debug.Print(zz.Status.ToString)

No comments:

MySQL to MariaDB

 Here is a good description how to migrate to MariaDb MySQL to MariaDb Example of how to dump data from MySQL port=3307: mysqldump --user=ro...