This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How come I can ping a machine?  RSS feed

 
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!