Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38379
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? |
| Date | 2018-06-14 14:09 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <pfub0c$mf6$1@gioia.aioe.org> (permalink) |
| References | <f1d70a92-e43f-4065-8c03-1bcb8782d737@googlegroups.com> <pfrf4m$3i9$1@dont-email.me> <08c836c0-5014-4e7d-8dab-ddf99059e9c7@googlegroups.com> <pfuaka$8v9$1@dont-email.me> |
On 6/14/2018 2:02 PM, Knute Johnson wrote: > On 6/14/2018 01:14, siddareddy.moolam@gmail.com wrote: >> i need to also check whether the ip is up or down ??? > > InetAddress::isReachable is just a ping and only tells you the machine > is there and responding to pings. Connecting to the server tells you > the machine is there and the server is running. isReachable is one of those methods that one should be very careful relying too much on. It can give both false negatives and false positives. The documentation sort of hint at it: <quote> 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. </quote> It will do a "best effort". :-) Arne
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? siddareddy.moolam@gmail.com - 2018-06-13 03:39 -0700
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-06-13 11:01 -0500
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-06-13 11:06 -0500
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? siddareddy.moolam@gmail.com - 2018-06-13 23:14 -0700
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2018-06-14 13:02 -0500
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? Arne Vajhøj <arne@vajhoej.dk> - 2018-06-14 14:09 -0400
Re: How to give ip address as a input on java...if I give ip addrees as a input need to display ip adress present in the server or not??? Martin Gregorie <martin@mydomain.invalid> - 2018-06-14 21:40 +0000
i need to check whether particular ip adress is up or down can anybody help me?? siddareddy.moolam@gmail.com - 2018-06-13 23:16 -0700
csiph-web