Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Remoting: Check if client is connected to server

Posted on 2008-10-24
4
Medium Priority
?
626 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 1500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

783 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