Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #38381

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???

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
From Martin Gregorie <martin@mydomain.invalid>
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 Thu, 14 Jun 2018 21:40:53 +0000 (UTC)
Organization albasani.net
Lines 29
Message-ID <pfund5$6b8$1@news.albasani.net> (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> <pfub0c$mf6$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.albasani.net e7KTzaKb2Vy5dsk/fR+gZsznhGx36MD8JkIfuuuhxZ7nhRJWt5oVdGnD61UiYmnvCl0DK39qtccQhJ2Wb5F9yg==
NNTP-Posting-Date Thu, 14 Jun 2018 21:40:53 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="hVML/TLdi46uLLZTdVejGtQzBho/N2diQaA82r0Ks5fZlc/PQQuCwQy6XiLj/KQ818nRFE6l5HEf3bXsxnJm3RqYSup5MHJkQJ604o6DeL4/1dRceEzfkioHghHW/U8K"; mail-complaints-to="abuse@albasani.net"
User-Agent Pan/0.144 (Time is the enemy; 28ab3ba git.gnome.org/pan2)
Cancel-Lock sha1:xYzLrM45CS21/w/Cx2z/9a60N9s=
Xref csiph.com comp.lang.java.programmer:38381

Show key headers only | View raw


On Thu, 14 Jun 2018 14:09:18 -0400, Arne Vajhøj wrote:

> 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.
>
Indeed it does. 

On my LAN it says the openjdk version "1.8.0_171"machine its on is 
reachable but nothing else, internally or externally is. Yet ping can tag 
all the hosts I've tried it on. And, yes, InetAddress.getByName() 
successfully resolves these host names to the expected IP addresses.

This is with Java openjdk version "1.8.0_171" on Fedora 27 fully patched 
as of last Friday.


-- 
Martin    | martin at
Gregorie  | gregorie dot org

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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