Solved

Remoting: Check if client is connected to server

Posted on 2008-10-24
4
619 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 11

Expert Comment

by:ladarling
ID: 22795974
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
ID: 22796223
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
ID: 22802307
ping the computer?, this is remoting. so the "server" is just an application
0
 
LVL 1

Author Comment

by:AWestEng
ID: 22814241
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

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