Solved

Remoting: Check if client is connected to server

Posted on 2008-10-24
4
616 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

929 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

11 Experts available now in Live!

Get 1:1 Help Now