Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

ping - IPAddress

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic