Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2008

Tip: Looking for answers? Try searching our database.

problem with Pinging from  solaries  server

Thread view: 
tmanohar28@gmail.com - 24 Apr 2008 18:45 GMT
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
RedGrittyBrick - 25 Apr 2008 09:46 GMT
> Hi,
>
>   i am trying to execute below code from solaries platfrom

Solaris?

> InetAddress addy = InetAddress.getByName(ipaddress);
> try {
[quoted text clipped - 5 lines]
> 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/)

Signature

RGB

Roedy Green - 25 Apr 2008 13:02 GMT
On Fri, 25 Apr 2008 09:46:34 +0100, RedGrittyBrick
<RedGrittyBrick@SpamWeary.foo> wrote, quoted or indirectly quoted
someone who said :

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

you can also snoop on what your program is sending and getting back.
That may give a clue.  See http://mindprod.com/jgloss/sniffer.html
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.