ping

Viewing incoming ping on windows server

I'm trying to see the results of an incoming ping on a target windows machine. This is needed to verify that the ping, which is running in a background thread, is being sent from the originator. I have tried netstat to no avail. Are there any other approaches I could try? Thanks. ...

Server application have to make pings to N clients. Is there way to make it multithreaded?

I write server application (Windows Server 2003) making upto 1000 ping calls to clients and waiting for receive responses. As ping uses ICMP connection, I've found no way to define from which IP the server receives the responses. Currently I use blocking by Mutex but it practically removes all bonus of multhithreading. Is there another w...

how to use ping in a script

I want a bash script that'll do: for c in computers: do ping $c if ping is sucessfull: ssh $c 'check something' done If I only do ssh and the computer is iresponsive, it takes forever for the timeout. So I was thinking of using the output of ping to see if the computer is alive or not. How do I do that? Other ideas will be...

Translating a Windows batch file into a Linux shell script

I have a batch file that I use to check whether my sites react to a ping. If a site doesn't react, the script writes the output into a text file. I wanted to use the same kind of script on a Linux system. Can anyone help me translating the code so that I can use it on a Linux shell? set list=domains.txt If "%list%" =="" GoTo EXIT for ...

How can my Ruby "Time.now" timings be so low when my "ping" timings are so high?

I'm using MongoDB for the first time and trying to time its performance. I'm running ruby on a VirtualBox Ubuntu 9.10 guest with a Windows 7 64-bit host. MongoDB is on a remote host, not on my lan buit somewhere in the internet cloud. Here's my code: time1 = Time.now rows = coll.find(some_criteria) puts ((Time.now - time1) * 1000)....

Threading issues using Ping to map active IPs - C#

I am trying to create a simple Network Tool to ping all possible IPs on your local subnet and provide a list of such IPs in a DataGridView. I am new to having to consider threading which is a good thing to come across as a budding programmer. Sorry, but you are probably going to have to do some explaining to me, but in my mind this sho...

Ping a network using threads and testing it

I am trying to ping two different networks with thread. I am able to get the response I want but I want to convert it into a test. I have the code that I have tried below but the test runner says that no tests were run. The code is below: #!/home/workspace/downloads/Python-2.6.4/python from threading import Thread import subprocess, un...

How do I ping from Flex - AIR?

I'm bored cause my development server is down and I'm running the command prompt to ping the server indefinitely so that I'll see when they stop timing out and know that I can work again. In the meantime I wanted to make an Air app that will do this for me, so I can have it chirp or alarm or do something when it starts to be able to conn...

How to ping pingomatic.com with XML-RPC from a Rails app

I want to automate sending pings to rpc.pingomatic.com but I can't find anywhere which documents the fields to send in the RPC document. I'm not worried about a fancy RPC generator. I'm happy just to #{...} the link into a static string. I just need to know what to insert it into. ...

Does the reply of PING contain the original data? c#

Hello all just a quick question. I am using c# Ping class to ping a server. If I send the ping with a buffer (say 10240 bytes), will the server come back with also the original 10240 bytes? I ask this because I am measuring the latency between two endpoints, together with the data size (to see how much impact of the data size on the ...

Problem with asyn icmp ping

I'm writing service in python that async ping domains. So it must be able to ping many ip's at the same time. I wrote it on epoll ioloop, but have problem with packets loss. When there are many simultaneous ICMP requests much part of replies on them didn't reach my servise. What may cause this situation and how i can make my service ping...

How do I get killed using Perl FCGI?

I'm having a little problem with nginx and the Perl FCGI module. I have a long operation in my FCGI program that may outlive the server (or the user on the server) on the other end of the Unix socket I'm using to communicate FCGI. I need the FCGI accept() loop in my program to break if the FCGI request is closed. I tried installing INT, ...

Best practice to find out the closest AD server in the netwrok and to find if the server is dead.

Whats the best way of finding the closest server in the network from the list of servers. I have 2 servers in different locations and through code I want to connect to the one which is closest to where the application is deployed (in terms of connection time). Also whats the best way to find out if a server is down keeping in mind that...

How to ping an ip and get only the ms in the Tk with Python?

I want to make a little tk app that continuous ping an ip and only show the MS, like, "10ms" how could I do? ...

How to do a true Java ping from Windows?

I have a device on a network that I am attempting to ping through my Java program. Through my windows command prompt, I can ping the device address fine and do a tracert on the address fine. Online, I have seen that in order to do a ping through Java you have to do the following: InetAddress.getByName(address).isReachable(timeout); B...

How do I ping a server in J2ME / BlackBerry?

How do I ping a server in J2ME / BlackBerry using java? This seems basic, but I can't find it in the javadocs. Thanks. ...

ICMP - TTL - Traceroute

Given the following situation: PC --- |aa RTR1 bb| --- |aa RTR2 bb| --- |aa RTR3 bb| etc Each of the |aa rtr bb| is meant to be a router with two ports aa and bb. My question is this. When you do a trace route from PC which router port address should respond with time to live exceeded in transit message? I seem to remember b...

Ping or otherwise tell if a device is on the network by MAC in C#

I'm developing a home security application. One thing I'd like to do is automatically turn it off and on based on whether or not I'm at home. I have a phone with Wifi that automatically connects to my network when I'm home. The phone connects and gets its address via DHCP. While I could configure it to use a static IP, I'd rather n...

How do I use the Firefox ping attribute?

Firefox apparently supports a PING attribute for HREFs. How do I implement code to receive the ping? ...

Client ping to servers

Hi, I am wondering what would the best way to let visitors of a website ping various remote servers. Example: I am a visitor, I choose from a lsit of locations Paris, France and the script would ping from my location to Paris and return an average of x number of ping attempts. Any ideas? ...