Solved

Remoting: Check if client is connected to server

Posted on 2008-10-24
4
615 Views
Last Modified: 2013-11-07
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
Comment
Question by:AWestEng
  • 2
4 Comments
 
LVL 11

Expert Comment

by:ladarling
Comment Utility
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
 
LVL 18

Accepted Solution

by:
DarrenD earned 500 total points
Comment Utility
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
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
ping the computer?, this is remoting. so the "server" is just an application
0
 
LVL 1

Author Comment

by:AWestEng
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now