Questions tagged [ping]

Ping is a mechanism to see if a remote host is reachable via an IP network

Ping is used to send an ICMP packet to a remote host. The ICMP type sent is an echo request, and the type the remote host will send back is an echo reply. Some firewalls or hosts may block ICMP, so ping should not be the only tool used for troubleshooting.

928 questions
793
votes
18 answers

Ping a Specific Port

Just a quick sanity check here. Can you ping a specific port of a machine, and if so, can you provide an example? I'm looking for something like ping ip address portNum.
Davie
  • 8,055
  • 3
  • 11
  • 8
104
votes
14 answers

Is Ping a reliable way to check if a server is available?

In my application I am pinging a server and waiting for a response. I am using this to determine whether the server is available and responsive or not. Is this a reliable way of determining availability? I assume a firewall could be filtering icmp…
Peter Kelly
  • 1,072
  • 2
  • 7
  • 10
77
votes
14 answers

How can I set a short timeout with the ping command?

I am trying to write a script that lists all the hosts on my LAN (there a about 20 of them) and writes the ping status next to each host. I have the DHCP leases file, so I have all the IPs (say, 10.0.0.1, 10.0.0.2, etc.), all I need is the ping…
MiniQuark
  • 3,695
  • 2
  • 20
  • 23
62
votes
18 answers

How to ping in linux until host is known?

How can I ping a certain address and when found, stop pinging. I want to use it in a bash script, so when the host is starting up, the script keeps on pinging and from the moment the host is available, the script continues...
Sander Versluys
  • 881
  • 1
  • 10
  • 12
58
votes
8 answers

What does "TTL expired in transit" mean on a ping attempt?

We get the message “TTL expired in transit” when we try to ping to a server in a different network segment. When we run tracert, 4 ip addresses repeat themselves indefinitely: 14 60 ms 59 ms 60 ms xxx.xxx.xxx.2 15 83 ms 81 ms 82…
Leonardo
  • 685
  • 1
  • 5
  • 8
57
votes
4 answers

What does mdev mean in ping(8)?

What does mdev mean in ping output (last row below)? me@callisto ~ % ping -c 1 example.org PING example.org (192.0.43.10) 56(84) bytes of data. 64 bytes from 43-10.any.icann.org (192.0.43.10): icmp_seq=1 ttl=245 time=119 ms --- example.org ping…
Daniel
  • 2,877
  • 5
  • 20
  • 24
39
votes
5 answers

Why do we ping the IP 4.2.2.2 to test connectivity?

For as long as I can remember, I've always used the IP 4.2.2.2 when testing network connectivity using ping. What is significant about this IP, and when did this practice start?
gnavi
  • 493
  • 1
  • 4
  • 6
35
votes
3 answers

Data obtained from ping: is it round trip or one way?

I have 2 servers, each in two separate locations. I need to host an application on one, and the database server on the other. From the app server, if I ping the database server, on average I get about 30ms. My question is: When I query the database…
Phil
  • 493
  • 1
  • 4
  • 9
32
votes
2 answers

How to stop ping output?

I run ping command in console and it now outputs hundreds of those rows now (icmp_seq=526 ttl=64 time=0.026 ms), icmp_seq is like 500 or more now. How to stop it? (linux debian) Should i just close console? Never mind, it stopped on 532.…
Rihards
  • 759
  • 2
  • 12
  • 22
29
votes
3 answers

How to Ping explicitly from eth1 instead of eth0

I'm trying to execute a ping with eth1, but the program uses eth0(the default network device). Any tips, tricks, or alternate techniques available?
user185814
  • 301
  • 1
  • 3
  • 5
28
votes
12 answers

Is there any way to ARP ping on Windows?

On Linux and other systems, there is an utility called arping which can be used to send ARP requests ("pings") and show the answers, much like the "ping" utility but using ARP instead of ICMP. Is there any way to do the same on Windows? (I use…
Etienne Dechamps
  • 2,164
  • 8
  • 24
  • 28
26
votes
6 answers

How does ping know that my packets are filtered?

I'm customer of an Irish ISP, eircom, which has started censoring the pirate bay. When I try to ping 194.71.107.15 which is the IP address of thepiratebay.com, I get this output: PING 194.71.107.15 (194.71.107.15) 56(84) bytes of data. From…
Amandasaurus
  • 30,211
  • 62
  • 184
  • 246
25
votes
7 answers

Enable Ping in Windows Server Firewall?

I've just installed Windows Server 2008 on a server and I'm able to connect through Remote Desktop but can't ping. Do I need to open an special port on the firewall to be able to ping a server?
holiveira
  • 859
  • 2
  • 13
  • 14
24
votes
5 answers

Why can't I ping my freshly set up amazon web service EC2 instance?

I was following this tut on how to set up a EC2 instance on Ubuntu but qhen trying to execute ssh command on my IP address, I had an operation Timeout. So I tried to ping it but no chance neither. got Request timeout Any idea what to do to make it…
Miles M.
  • 371
  • 1
  • 2
  • 11
22
votes
2 answers

Pinging an IP address responds with different IP

When I try to ping the IP address 10.10.208.57 I have no response since nothing exist in the network with that IP address. However if I try to ping 10.10.208.057 instead another IP address responds: root@everest:/root# ping 10.10.208.057 PING…
PsyStyle
  • 309
  • 1
  • 4
  • 12
1
2 3
61 62