Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How come I can ping a machine?

 
Vikram Deshmukh
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to ping a machine on the network, without socket call.
Just for a provided IP addr I need to know if machine is on or off.
How come I can do it?
As well I need to know machine on the other subnet is on or off.
waiting earnestly ...
 
suheel hussain
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remote machines are pinged using ICMP packets at
IP layer. Java (atleast 1.3) does not provide
mechanism to construct a raw IP packet -- i.e., application can only construct TCP or UDP packets.
You would have to create a socket to find if a remote machine is active.
 
allen turner
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just try out this link and see if it helps. this enables u to make raw packets and maybe u can find out how to make the raw ping packets and send it to the machine
http://www.goto.info.waseda.ac.jp/
~fujii/jpcap/index.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!