ping

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 Question is: What is the preferred way to ping a URL in java? Here is my current code as a starting point: try{ final URLConnection ...

Ping a hostname on the network

I am wanting to ping a hostname on the network. ...

Log with ip addresses that pinged my computer, how?

Hi, I have a following problem. I have a Windows 7 computer with pinging enabled, and clients which ping my computer from time to time. I would like to have a log and real time reporting of ip addresses which are pinging me. Is this possible? ...

network bonded machine has occasional ping problems outbound but never inbound

Hello, We have a Suse Linux 11 server with network bonding which we named DBSERVER. With the following script running on another similar machine named CLIENTMACHINE, we observe no errors when pointing the script toward DBSERVER: (begin script) #!/bin/bash # parameter: IP address if [ ${#*} != 1 ] then echo "Need one paramet...

Problem ping a URL from C#

My scenario: When i ping with www.google.com it give the status Success, When i try to ping http://stackoverflow.com i got an exception "An exception occurred during a Ping request." What is the reason? how can i solve? using (Ping png = new Ping()) { PingReply pr = png.Send("http://stackoverflow.com"); string status= pr.Status.To...

Linux ping broadcast switch

When using ping on virtually every UNIX system available, pinging the broadcast address is simple: $ ping 192.168.11.255 However, when this is done on Linux, a non-standard (and continually annoying!) response occurs: $ ping 192.168.11.255 Do you want to ping broadcast? Then -b This has annoyed me to no end ever since I saw it for ...

How does one send ICMP packets (with associated TTL values) in Java on Android? Is it possible without a 3rd-party library? If not, what do you use?

This seems like it should be a simple solution to find, but I'm not having any luck. I want to write a simple ping/traceroute/dns troubleshooting app, but am simply not finding any documentation or examples on sending ICMP ECHO packets with set TTLs and interpreting their responses. I realize that Java likes to keep you away from "low-le...

Test if a URI is up

I'm trying to make a simple app that will "ping" a uri and tell me if its responding or not I have the following code but it only seems to check domains at the root level ie www.google.com and not www.google.com/voice private bool WebsiteUp(string path) { bool status = false; try { Uri uri = n...

ping a computer in ssh?

Hi all, Is there any command to ping a computer, or translate domain name to ip address in ssh? Thank you !! ...

How to ping eth0 from eth1 on my linux machine?

I have a linux machine with 2 ethernet ports(eth0 and eth1). eth0 is connected to a router which assigns it an IP address 192.168.1.2. eth1 is connected to a switch which doesn't have an IP. How do I ping eth0 from eth1? ...

Test if webpage is responding via php

I'm trying to build a basic "status" page using php that will tell my users if various services (webpages we use) are at least serving up pages (which isn't 100% guarantee of working but its pretty good indicator) what i would like to do is something like www.domainname.com/mediawiki/index.php and make sure that returns the page or not...

Connecting Real device to Android emulator

Hi, I am developing a network app for Android and I'm still stuck on connecting my real Android device with an device-emulator running on my desktop computer. I've created private network with a router, so the only ones connected to the network are my pc and my mobile phone, in order to avoid firewall/closed ports problems. My PC ip is...

Suppress system("ping") output in C++

Hi guys, I have written a simple program that pings three sites and then reacts to whether they are reachable or not. My question is: can I suppress system("ping ")'s output? I have written my code in C++ as I know that language the best. Currently the code opens the ping.exe running the system command. If I can prevent the output from...