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
12
votes
2 answers

ipv6 ping connect: invalid argument on android

Why ping6 doesn't work on my Android dev? ping6 on the Android dev. bullhead:/ # ping6 fe80::405a:e0a5:e054:cbde connect: Invalid argument 2|bullhead:/ # ping6 -I wlan0 fe80::405a:e0a5:e054:cbde …
Andrey Egorov
  • 391
  • 1
  • 4
  • 15
12
votes
2 answers

What does "2>&1" in a Windows Command Do?

Doing some maintenance on a script, I found this line: ping -n 40 127.0.0.1 > NUL 2>&1 I know from this question that everything up to the NUL causes the script to sleep for 39 seconds. But I don't know what the rest of the command does. What does…
user2023861
  • 8,030
  • 9
  • 57
  • 86
12
votes
2 answers

How to send a message with ping?

The Ping command uses an ICMP request as far as I know So is it possible to send a short text with the ping command right from commandline?
derich
  • 181
  • 1
  • 1
  • 11
12
votes
3 answers

Vagrant ping or curl from guest to host machine

I wonder how I can run the command, using the terminal, from my vagrant machine: $ ping localhost:3000 or $ curl http://localhost:3000 In host machine (OSX) I have a rails server running in localhost:3000, so I expect something to show in the rails…
Emba Moussa
  • 662
  • 8
  • 18
12
votes
1 answer

Waiting for network link to be up before continuing in bash

Is there a way to check for successful network interface link for multiple interfaces in a bash script before continuing? Something like: eth0 eth1 eth2 eth3 network interfaces are brought up Wait for link detection on all 4 interfaces Proceed
user1527227
  • 2,068
  • 5
  • 25
  • 36
12
votes
2 answers

Why i'm getting PingException?

It was all working an hour ago and many days ago. The link i try to ping is: Link to ping This is the code in form1: nc = new NetworkConnection(); bool bval = nc.PingConnection(satellite_address); if (bval) { label19.Visible = true; …
user3596190
  • 257
  • 1
  • 4
  • 12
12
votes
1 answer

Difference between a ping and a heartbeat?

I have never heard of the heartbeat until the heartbleed bug. I wonder what is the difference between this and a ping, and if there are other signals to manage the connection (also, which are not data packages).
Quora Feans
  • 928
  • 3
  • 10
  • 21
12
votes
4 answers

Get the ping from a remote target with Qt (Windows/Linux)

Currently I use this code for retrieving the ping of a target system. However it works so far only under linux and it is likely dependent on the locale settings. To add support for windows will be likely even more complicated. Is there an easy…
dgrat
  • 2,214
  • 4
  • 24
  • 46
12
votes
4 answers

What data is included in ICMP (ping) request?

I know the ICMP request contains the IP address. Is the client MAC address included in an ICMP request? What other info (if any) is included in a ping request?
exvance
  • 1,339
  • 4
  • 13
  • 31
12
votes
3 answers

Ping Application in Android

I am making an application which will implement some features of the "ping" command.The problem is, I have no idea of which library/libraries to use in ANDROID. anyone have any idea for it? I have visited these stackoverflow links but they weren't…
user1944616
12
votes
3 answers

Scapy how get ping time?

I'm trying to write a scapy script which can make an average on the ping time, so I need to get the time elapsed between ICMP echo/reply packet sent and reply packet received. For now, I have this: #! /usr/bin/env python from scapy.all import * from…
user1789326
  • 141
  • 1
  • 3
  • 8
11
votes
3 answers

Sending ICMP packets in a C program

I'm trying to create an ICMP ping test program in C but am having difficulties with successfully sending the packets. The sendto function returns the # of bytes and everything but no packets are actually sent. I've verified this with WireShark on…
Zac
  • 2,325
  • 3
  • 23
  • 33
11
votes
2 answers

How to ping in JavaScript or jQuery?

I want to create a game-like ping in Javascript, just like the game Counter Strike for example. I'm doing an AJAX call to the server (MySQL) and want to calculate the time that's taken, but I'm either calculating it wrong or have the wrong idea of…
Kivylius
  • 6,357
  • 11
  • 44
  • 71
11
votes
1 answer

Celery inspect function is hanging, how to troubleshoot?

As I follow the celery documentation > from celeryapp import app > i = app.control.inspect() > i.active() The inspection seems to hang. Has anyone seen this before? And can anyone shed some light on why this might happen? It happens when I call…
dgoldman
  • 111
  • 5
11
votes
2 answers

'ping' is not recognized as an internal or external command operable program or batch file error

When I do ping www.google.com I get the error message 'ping' is not recognized as an internal or external command operable program or batch file. Here is an example: Then: What could I be doing wrong? I'm using Windows 7, 64 bit There was some…
Luiz
  • 311
  • 1
  • 3
  • 13