Questions tagged [ping]

Ping is a computer network administration utility used to test the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time for messages sent from the originating host to a destination computer.

Ping is a computer network administration utility used to test the reachability of a host on an Internet Protocol (IP) network and to measure the round-trip time for messages sent from the originating host to a destination computer. The ping utility uses the network protocol, which is often filtered by firewalls, so its usefulness is usually limited in corporate environments.

Examples

ping -n 5 www.example.com #pings 5 times the server named www.example.com

A domain name or IP address can be used.

See also

References

2853 questions
11
votes
3 answers

Convert Test-Connection into Boolean

I am using Powershell version 2, so I am unable to use Ping-Host as explained here Is there a way to treat Ping-Host as a boolean in PowerShell? I can use test connection, i.e. Test-Connection *ip_address* -count 1 I am trying to make this into a…
Glowie
  • 2,271
  • 21
  • 60
  • 104
11
votes
4 answers

Delphi (XE2) Indy (10) Multithread Ping

I have a room with 60 computers/devices (40 computers and 20 oscilloscopes Windows CE based) and I would like to know which and every one is alive using ping. First I wrote a standard ping (see here Delphi Indy Ping Error 10040), which is working…
HpTerm
  • 8,151
  • 12
  • 51
  • 67
10
votes
3 answers

Request timed out when pinging wireless router

Recently I noticed the internet running very slowly on my laptop, which is connected to my wireless network (Netgear DGN2000). When I ping the router, I get long ping times and/or request timed out...here's an output: Reply from 192.168.0.1:…
Mark Knight
  • 171
  • 1
  • 1
  • 10
10
votes
8 answers

Local network pinging in python

Does anyone know how to use python to ping a local host to see if it is active or not? We (my team and I) have already tried using os.system("ping 192.168.1.*") But the response for destination unreachable is the same as the response for the host…
Justin Gardner
  • 101
  • 1
  • 1
  • 3
10
votes
2 answers

iOS - Ping with timeout

I'm using Apple's "Simple Ping" example and it has almost all features that I need, but I don't know where I can set timeout of each packet. It seems that it isn't possible because function that is used to write data to socket doesn't have any…
alhcr
  • 823
  • 4
  • 12
  • 21
10
votes
5 answers

Script to start traceroute if continuous ping fails, output to log

I want to continuously ping my home public IP address, and if the ping fails automatically do a traceroute to see where it's failing. I've been trying to follow the comments made…
lysdexic
  • 363
  • 1
  • 3
  • 14
10
votes
2 answers

Can connect with ping but not curl

I am testing connecting to a remote server from my local machine. Using ping I can successfully connect but if I try with curl it just hangs: Working with ping: $ ping db-machine-02 Pinging db-machine-02.comp.org [xxx.xx.x.xxx] with 32 bytes of…
u123
  • 15,603
  • 58
  • 186
  • 303
10
votes
3 answers

Erlang ping node problem

I made in erlang shell: 1> node(). nonode@nohost But 2> net_adm:ping(node()). pang Why? What's problem? Why not pong? Thank you.
0xAX
  • 20,957
  • 26
  • 117
  • 206
10
votes
9 answers

How to ping IP addresses using JavaScript

I want to run a JavaScript code to ping 4 different IP addresses and then retrieve the packet loss and latency of these ping requests and display them on the page. How do I do this?
user434885
  • 1,988
  • 6
  • 29
  • 51
10
votes
4 answers

Check if ping was successful using subprocess in python

I execute the ping command in python by opening a cmd window with the ping command using python's subprocess module. For example: import subprocess p = subprocess.Popen('ping 127.0.0.1') Afterwards I check if the output contains "Reply from…
yuval
  • 2,848
  • 4
  • 31
  • 51
10
votes
1 answer

Why can't I ping herokuapp

I have an application running on heroku, say my-app.herokuapp.com. However, if I type ping -c 10 my-app.herokuapp.com in Mac terminal, it says Request timeout, though the app is running, I can open it in my browser. Why is that?
xaxa
  • 1,057
  • 1
  • 24
  • 53
10
votes
5 answers

How can I make many pings asynchronously at the same time?

I just can't seem to understand how to structure an asynchronous call to SendPingAsync. I want to loop through a list of IP addresses and ping them all asynchronously before moving on in the program... right now it takes forever to go through all of…
eddie_cat
  • 2,527
  • 4
  • 25
  • 43
10
votes
1 answer

Fast ping sweep in python

So, I'm trying to get similar results using python as I do with a bash script. Code for the bash script: #!/bin/bash for ip in $(seq 1 254); do ping -c 1 10.10.10.$ip | grep "bytes from" | cut -d " " -f 4 | cut -d ":" -f 1 & …
digital_alchemy
  • 663
  • 4
  • 9
  • 19
10
votes
3 answers

best Alternative for InetAddress.getByName(host).isReachable(timeout)

I am trying to reach a host and have the following code if(!InetAddress.getByName(host).isReachable(TIMEOUT)){ throw new Exception("Host does not exist::"+ hostname); } The hostname I am able to ping from windows, and also did a tracert on it…
user2684404
10
votes
7 answers

How can I perform a ping or traceroute using native python?

I would like to be able to perform a ping and traceroute from within Python without having to execute the corresponding shell commands so I'd prefer a native python solution.
Dave Forgac
  • 3,146
  • 7
  • 39
  • 54