473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How to Ping and Get Results

JC
Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc
Nov 16 '05 #1
8 1648
Hi,

Look at here :

http://www.csharphelp.com/archives3/archive554.html
Regards.
Lloyd
"JC" <st**********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc

Nov 16 '05 #2
Hi,

I saw here
http://www.csharphelp.com/archives3/archive554.html
Lloyd

"JC" <st**********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc

Nov 16 '05 #3
Only problem with this method is that it requires Admin level to work (I
think.) So you can't assume Admin on every machine app runs at - that may
not be an issue for you. Another method that works is ICMP win32 api in
ICMP.dll. Doco says may not be supported in future, but has been there in
each os so far. HTH

--
William Stacey, MVP

"mike" <ni***********@yahoo.ca> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Hi,

Look at here :

http://www.csharphelp.com/archives3/archive554.html
Regards.
Lloyd
"JC" <st**********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc



Nov 16 '05 #4
What in the code requires admin level?

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Only problem with this method is that it requires Admin level to work (I
think.) So you can't assume Admin on every machine app runs at - that may
not be an issue for you. Another method that works is ICMP win32 api in
ICMP.dll. Doco says may not be supported in future, but has been there in
each os so far. HTH

--
William Stacey, MVP

"mike" <ni***********@yahoo.ca> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Hi,

Look at here :

http://www.csharphelp.com/archives3/archive554.html
Regards.
Lloyd
"JC" <st**********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
Hi,

I need to write an application that pings servers and displays the
results. Can someone point me in the right direction?

thanks,
jc


Nov 16 '05 #5
The "raw" socket type.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:70******************************@news.meganet news.com...
What in the code requires admin level?

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Only problem with this method is that it requires Admin level to work (I
think.) So you can't assume Admin on every machine app runs at - that may not be an issue for you. Another method that works is ICMP win32 api in
ICMP.dll. Doco says may not be supported in future, but has been there in each os so far. HTH

--
William Stacey, MVP

"mike" <ni***********@yahoo.ca> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
Hi,

Look at here :

http://www.csharphelp.com/archives3/archive554.html
Regards.
Lloyd
"JC" <st**********@hotmail.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I need to write an application that pings servers and displays the
> results. Can someone point me in the right direction?
>
> thanks,
> jc
>
>



Nov 16 '05 #6
Oh, no kidding. I didn't realize you had to be admin to do that.

That kind of sucks. I mean, using the ICMP protocol from unmanaged code
shouldn't require admin priviledges, I don't think. I hope this will be
"fixed" in Whidbey.

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The "raw" socket type.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:70******************************@news.meganet news.com...
What in the code requires admin level?

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
Only problem with this method is that it requires Admin level to work (I think.) So you can't assume Admin on every machine app runs at - that may not be an issue for you. Another method that works is ICMP win32 api in ICMP.dll. Doco says may not be supported in future, but has been there
in
each os so far. HTH

--
William Stacey, MVP

"mike" <ni***********@yahoo.ca> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
> Hi,
>
> Look at here :
>
> http://www.csharphelp.com/archives3/archive554.html
>
>
> Regards.
> Lloyd
> "JC" <st**********@hotmail.com> wrote in message
> news:uV**************@TK2MSFTNGP10.phx.gbl...
> > Hi,
> >
> > I need to write an application that pings servers and displays

the > > results. Can someone point me in the right direction?
> >
> > thanks,
> > jc
> >
> >
>
>


Nov 16 '05 #7
I think it is. I agree with you.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:83******************************@news.meganet news.com...
Oh, no kidding. I didn't realize you had to be admin to do that.

That kind of sucks. I mean, using the ICMP protocol from unmanaged code
shouldn't require admin priviledges, I don't think. I hope this will be
"fixed" in Whidbey.

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The "raw" socket type.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:70******************************@news.meganet news.com...
What in the code requires admin level?

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
> Only problem with this method is that it requires Admin level to
work
(I > think.) So you can't assume Admin on every machine app runs at -
that
may
> not be an issue for you. Another method that works is ICMP win32
api in > ICMP.dll. Doco says may not be supported in future, but has been there
in
> each os so far. HTH
>
> --
> William Stacey, MVP
>
> "mike" <ni***********@yahoo.ca> wrote in message
> news:up**************@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > Look at here :
> >
> > http://www.csharphelp.com/archives3/archive554.html
> >
> >
> > Regards.
> > Lloyd
> > "JC" <st**********@hotmail.com> wrote in message
> > news:uV**************@TK2MSFTNGP10.phx.gbl...
> > > Hi,
> > >
> > > I need to write an application that pings servers and displays

the > > > results. Can someone point me in the right direction?
> > >
> > > thanks,
> > > jc
> > >
> > >
> >
> >
>



Nov 16 '05 #8
Whidbey has a NetworkInformation namespace (I think), that has many tools for
investigating network adapters, perfroming pings, etc... The new classes/tools
may
still require sufficiently high privs in order to be used.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I think it is. I agree with you.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:83******************************@news.meganet news.com...
Oh, no kidding. I didn't realize you had to be admin to do that.

That kind of sucks. I mean, using the ICMP protocol from unmanaged code
shouldn't require admin priviledges, I don't think. I hope this will be
"fixed" in Whidbey.

Pete

"William Stacey [MVP]" <st***********@mvps.org> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The "raw" socket type.

--
William Stacey, MVP

<pd******@hotmail.com> wrote in message
news:70******************************@news.meganet news.com...
> What in the code requires admin level?
>
> Pete
>
> "William Stacey [MVP]" <st***********@mvps.org> wrote in message
> news:O$**************@TK2MSFTNGP10.phx.gbl...
> > Only problem with this method is that it requires Admin level to work
(I
> > think.) So you can't assume Admin on every machine app runs at -

that may
> > not be an issue for you. Another method that works is ICMP win32

api
in
> > ICMP.dll. Doco says may not be supported in future, but has been

there
in
> > each os so far. HTH
> >
> > --
> > William Stacey, MVP
> >
> > "mike" <ni***********@yahoo.ca> wrote in message
> > news:up**************@TK2MSFTNGP09.phx.gbl...
> > > Hi,
> > >
> > > Look at here :
> > >
> > > http://www.csharphelp.com/archives3/archive554.html
> > >
> > >
> > > Regards.
> > > Lloyd
> > > "JC" <st**********@hotmail.com> wrote in message
> > > news:uV**************@TK2MSFTNGP10.phx.gbl...
> > > > Hi,
> > > >
> > > > I need to write an application that pings servers and displays

the
> > > > results. Can someone point me in the right direction?
> > > >
> > > > thanks,
> > > > jc
> > > >
> > > >
> > >
> > >
> >
>
>


Nov 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Sven Dzepina | last post by:
Hello people, I want to check with a php script if a port / serverservice is down. It would be great if I can check the ping time, too. But how I can realize that? Gretting from Germany.
3
by: Jason Rodman | last post by:
I have downloaded every example on how to create a ping utility in .Net in both VB and C#, but have been disappointed with the results. I have YET to find an example that returns consistent results...
7
by: Precious | last post by:
Using RegExp, I want to capture PING command success/failure and do the further processing. Can anybody help? TIA J Justin
0
by: Ed | last post by:
I've attached some VB.NET code I've hacked together (some taken from MS examples & newsgroup postings) that will perform a ping or IcmpSendEcho using the icmp.dll (see this for more info:...
4
by: =?Utf-8?B?QWxleCBLLg==?= | last post by:
Hi all I need a simple program that allows me to check if an IP address is pingable. I am not going to send/receive anything to the remote host, just check if it is visible. Something like...
12
by: Matt F | last post by:
I'm creating simple ping script that prompts a user for various parameters. However, I would like each line of the ping displayed as it is received. Currently, the result isn't displayed until...
3
by: imughal | last post by:
I got the perl script which does following task. This solution reads in a line from a text file that is passed in as input parameter 1 to a Perl script. This script will then ping the machine...
2
by: airwot4 | last post by:
I've been using ADSI to lookup a complete hostname from active directory from a partial as part of a script. It goes something like: Retrieve partial hostname from excel spreadsheet -...
1
by: Charlie of Bolton | last post by:
Hi, Need help to filter the proper value from a string, Here is a display from a ping command: Pinging 10.2.3.6 with 32 bytes of data: Request timed out. Request timed out.
1
by: india215 | last post by:
Hello all, Iam trying to save the ping results obatined in a text file in c++. Below is a copy of my code. Any advice will be greatly appreciated. I keep getting this error: c_str()) was...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.