problem with Pinging from solaries server

T

tmanohar28

Hi,

i am trying to execute below code from solaries platfrom

InetAddress addy = InetAddress.getByName(ipaddress);
try {
pStatus = InetAddress.isReachable(5000);
} catch (IOException e) {
mLog.error(e.getMessage());
}

i am trying to ping to the apddress but it is giving false even though
the machine(windows platform) is up

thanks in advance
 
R

RedGrittyBrick

Hi,

i am trying to execute below code from solaries platfrom
Solaris?


InetAddress addy = InetAddress.getByName(ipaddress);
try {
pStatus = InetAddress.isReachable(5000);
} catch (IOException e) {
mLog.error(e.getMessage());
}

i am trying to ping to the apddress but it is giving false even though
the machine(windows platform) is up

The API docs say:

"Test whether that address is reachable. Best effort is made by the
implementation to try to reach the host, but firewalls and server
configuration may block requests resulting in a unreachable status while
some specific ports may be accessible. A typical implementation will use
ICMP ECHO REQUESTs if the privilege can be obtained, otherwise it will
try to establish a TCP connection on port 7 (Echo) of the destination host."

I conclude that at least one of the following is true:

* Your "ipaddress" doesn't contain what you think it does.
* Your "false" result wasn't generated by the quoted code.
* Your target computer is behind a firewall
* Your target computer has internal firewalling enabled.
* Your target computer is not listening on port 7.

I'd check all the above, if still baffled I'd then post an SSCCE (see
http://sscce.org/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top