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.
23
votes
5answers
18k views
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, ...
6
votes
5answers
28k views
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 :)
24
votes
5answers
24k views
Preferred Java way to ping a HTTP Url for availability
I need a monitor class that regularly checks whether a given HTTP URL is available. I can take care of the "regularly" part using the Spring TaskExecutor abstraction, so that's not the topic here. The ...
5
votes
6answers
18k views
how to ping a server with php?
i want a php code that give you the ping of and ip:port
i have found a similar one but it only work for web site not on ip:port
<?php
function ping($host, $port, $timeout)
{
$tB = ...
5
votes
1answer
10k views
Android Service - Ping URL
How can I use Android Service to do a ping callback? I need to open a webpage on a button click, but in the background, go ping another url for stats collection.
Code snippets will be greatly ...
5
votes
2answers
6k views
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 ...
8
votes
2answers
5k views
IPv6 link-local address format
I am working on a project related to networking/compression. One of the machines is Windows Vista, which already has IPv6 configured.
When I try ipconfig, I see an address in the following format: ...
18
votes
7answers
21k views
TraceRoute and Ping in C#
Does anyone have C# code handy for doing a ping and traceroute to a target computer? I am looking for a pure code solution, not what I'm doing now, which is invoking the ping.exe and tracert.exe ...
8
votes
3answers
27k views
How to check if ping responded or not in a batch file
I want to continuously ping a server and see a message box when ever it responds i.e. server is currently down. I want to do it through batch file.
I can show a message box as said here ...
3
votes
6answers
8k views
curl and ping - how to check whether a website is either up or down?
I want to check whether a website is up or down at a particular instance using PHP. I came to know that curl will fetch the contents of the file but I don't want to read the content of the website. I ...
1
vote
4answers
13k views
java code to ping an IP address
I am using this part of code to ping an ip address in java but only pinging localhost is successful and for the other hosts the program says the host is unreachable.
I disabled my firewall but still ...
55
votes
5answers
184k views
How to determine if a port is open on a Windows server?
I'm trying to install a site under an alternative port on a server, but the port may be closed by a firewall. Is there a way to ping out or in, on a specific port, to see if it is open?
3
votes
1answer
837 views
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 ...
8
votes
2answers
985 views
Why does ping work without administrator privileges?
as you may know one is unable to create RAW sockets using Windows Sockets without having administrative priviliges. The problem is, that I need to send ICMP messages, thus I need RAW sockets. The ...
2
votes
2answers
8k views
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 = ...