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
29
votes
9 answers

python non-privileged ICMP

While trying to figure out the best method to ping (ICMP) something from python, I came across these questions: How can I perform a ping or traceroute in python, accessing the output as it is produced? ping a site in python How can I perform a ping…
Markus
  • 3,447
  • 3
  • 24
  • 26
28
votes
8 answers

Ping site and return result in PHP

I'd like to create a small IF procedure that will check if Twitter is available (unlike now, for example), and will return true or false. Help :)
Tomer Lichtash
  • 9,002
  • 16
  • 55
  • 71
27
votes
8 answers

Can't ping AWS RDS endpoint

I want to migrate my local mysql database to Amazon RDS. But first I want to test to see if it is receiving communication. So I try to ping it. But the attempt timeout. ping -c 5 myfishdb.blackOut.us-west-2.rds.amazonaws.com PING…
vt2424253
  • 1,387
  • 4
  • 25
  • 39
26
votes
6 answers

Powershell - Test-Connection failed due to lack of resources

Test-connection intermittently fails with a lack of resources error: test-connection : Testing connection to computer 'SOMESERVER' failed: Error due to lack of resources At line:1 char:45 + ... ($server in $ServersNonProd.Name) { test-connection…
cscracker
  • 365
  • 1
  • 3
  • 8
25
votes
7 answers

Bash loop ping successful

I'm thinking that this needs to be changed to a while clause, at the moment it'll wait till all 10000 pings are done, I need it to return when the ping is successful. The program "say" is on OSX it makes the computer speak. #!/bin/bash echo begin…
edumike
  • 3,149
  • 7
  • 27
  • 33
24
votes
4 answers

How to implement Ping/Pong request for webSocket connection alive in javascript?

I use websocket in javascript. But the connection close after one minute. I am wondering somethings: 1- Is not Websocket naturaly providing with Ping/Pong messages not to close the connection? I think it have to. Otherwise what is the difference…
Qwer Sense
  • 487
  • 1
  • 5
  • 12
24
votes
2 answers

Docker container binds to port, but I am unable to ping it

I have a running Docker container (from this image). The container seems to be running correctly as far as I can see (the log-files are looking good and can connect via SSH to container and use SQLPlus inside it). However, I am unable to connect to…
Thomas Uhrig
  • 30,811
  • 12
  • 60
  • 80
22
votes
11 answers

Pinging an IP address using PHP and echoing the result

I have the following function that I doesn't work so far. I would like to ping an IP address and then to echo whether the IP is alive or not. function pingAddress($ip){ $pingresult = shell_exec("start /b ping $ip -n 1"); $dead = "Request…
Bernard
  • 1,209
  • 3
  • 17
  • 22
22
votes
1 answer

Ping Tasks will not complete

I am working on a "heartbeat" application that pings hundreds of IP addresses every minute via a loop. The IP addresses are stored in a list of a class Machines. I have a loop that creates a Task (where MachinePingResults is…
davidsbro
  • 2,761
  • 4
  • 23
  • 33
22
votes
9 answers

Multiple ping script in Python

I'm unable to find any good easy to learn documentation on python and networking. In this instance, I'm just trying to make a easy script which I can ping a number of remote machines. for ping in range(1,10): ip="127.0.0."+str(ping) …
kuiper
  • 221
  • 1
  • 2
  • 3
21
votes
8 answers

extract average time from ping -c

I want to extract from the command ping -c 4 www.stackoverflow.com | tail -1| awk '{print $4}' the average time. 107.921/108.929/110.394/0.905 ms Output should be: 108.929
creativeDev
  • 1,113
  • 2
  • 13
  • 20
21
votes
3 answers

Ping a hostname on the network

How may I ping a hostname on a network?
user770022
  • 2,899
  • 19
  • 52
  • 79
21
votes
4 answers

What's the easiest to remember publicly pingable IPv6 address?

There are several well known IPv4 addresses on the Internet that people widely use for testing their internet connectivity - 4.2.2.2, 8.8.8.8, 8.8.4.4, 1.1.1.1, etc. But what about IPv6? Does anybody know any easy to remember publicly pingable IPv6…
dtoux
  • 1,754
  • 3
  • 21
  • 38
21
votes
10 answers

How can I check Internet access using a Bash script on Linux?

In my school, the Internet is not available (every night after 23:00 the school will kill the Internet connection, to put us to bed >..<), Then the ping will never stop, though I have used the parameter ping -w1 .... That is, when I use: ping -q -w1…
Libin Wen
  • 434
  • 1
  • 5
  • 17
20
votes
8 answers

Can't ping a local VM from the host

My work laptop is is a member of a domain (the OS is Windows 8). Created a new VM, locally on this laptop (using built-in Hyper-V). DHCP is provided by the domain and all IP addresses are assigned by the DHCP, both to the host and to the VM. The VM…
user2690101
  • 241
  • 1
  • 2
  • 5