• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

ping - IPAddress

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to Ping IPAddress of Multiple Client System

I tried this logic successfully in my local system, but I don't how to Ping others System IPAddress within my System

Please reply Soon
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Make a object of this class , and then through this object call function within this class, in argument giving the ip address you want to ping.
If this ip is reachable it will return true.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I read a lot of stuff recently about writing a ping program in java and I stumbled upon many answers. I tried the approach above but it didn't work (the answer is here: http://java.sun.com/j2se/1.5.0/docs/api/java/net/InetAddress.html#isReachable(int) ). I also tried this one: http://java.sun.com/j2se/1.5.0/docs/guide/nio/example/Ping.java but without success. My last try was with exec, which worked but that's not a very nice platform independent solution. What are my options for writing a program similar to the one above that actually work? Should I write a program in C and use it in java or there are some thrd. party libraries known?


Thanks a lot.
 
I'm sure glad that he's gone. Now I can read this tiny ad in peace!
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic