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 ...
I am wanting to ping a hostname on the network.
...
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?
...
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...
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...
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 ...
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...
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...
Hi all,
Is there any command to ping a computer, or translate domain name to ip address in ssh?
Thank you !!
...
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?
...
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...
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...
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...