Select Page
Codoid Blog

Checking Remote Computer Availability

Being a leading QA Company, we write blogs on all prominent software testing topics and tools using our real-world experience. So stay sharp by subscribing to our Newsletter.

There might be a case where we have to connect to remote
computer. In such case, before connecting to the remote computer, How to confirm remote computer is available or not?

Code

Dim oNetwork

'Creating Visual Basic Network object
Set oNetwork=DotNetFactory.CreateInstance("Microsoft.VisualBasic.Devices.Network"
,"Microsoft.VisualBasic")

'Ping method returns True, if remote computer is available.
If oNetwork.Ping("192.01.01.01") Then
Msgbox "Available"
Else
Msgbox "Not Available"
End If

Set oNetwork=Nothing
  

Synopsis

We can also ping with URL or computer name.

Comments(0)

Submit a Comment

Your email address will not be published. Required fields are marked *

Talk to our Experts

Amazing clients who
trust us


poloatto
ABB
polaris
ooredo
stryker
mobility