[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 627
  • Last Modified:

Remoting: Check if client is connected to server

Hi!

When I register the TcpChannel in the start of my client application I also want to know if ther server is online, is there a way to check if I'm "connected to the remote server?
0
AWestEng
Asked:
AWestEng
  • 2
1 Solution
 
ladarlingCommented:
The *easy* way to check if their server is online is to use something like:
 
If My.Computer.Network.Ping("10.2.1.125") Then
MsgBox("The Server 10.2.1.125 is responding")
End If
 The default timeout on the ping request is 500ms. There is an overload that allows you to set that, as well.
0
 
DarrenDCommented:
Hi,

Is it not the case that when you connect to the server you will find out pretty swiftly if the server is online. As you won't be able to connect and you will get an error.

Darren
0
 
AWestEngAuthor Commented:
ping the computer?, this is remoting. so the "server" is just an application
0
 
AWestEngAuthor Commented:
In remoting you will not get any data from the server before you ask for a object,
The only solution I got is, ask for a remoteable object and see if the server anwer.
 
 
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now