• Post Reply Bookmark Topic Watch Topic
  • New Topic

basic program to generate packet (help)  RSS feed

 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please help me get started on the following.
a simple program that can generate packets destined to a IP_address : PORT.
a program that can generate and send icmp packets to a given IP_address.
any good websites or resources etc.....
thanks

[ January 11, 2002: Message edited by: mark stone ]
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
REPOSTING..........................

Originally posted by mark stone:
please help me get started on the following.
a simple program that can generate packets destined to a IP_address : PORT.
a program that can generate and send icmp packets to a given IP_address.
any good websites or resources etc.....
thanks

[ January 11, 2002: Message edited by: mark stone ]
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
reposting
Originally posted by mark stone:
please help me get started on the following.
a simple program that can generate packets destined to a IP_address : PORT.
a program that can generate and send icmp packets to a given IP_address.
any good websites or resources etc.....
thanks

[ January 11, 2002: Message edited by: mark stone ]
 
mark stone
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
reposting. no replies yet ? why ?
Originally posted by mark stone:
please help me get started on the following.
a simple program that can generate packets destined to a IP_address : PORT.
a program that can generate and send icmp packets to a given IP_address.
any good websites or resources etc.....
thanks

[ January 11, 2002: Message edited by: mark stone ]
 
Zakaria Haque
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
with pure java you can not go below tcp and udp. for icmp you need to use JNI. There should be some class libraries that already provides such functionality(I saw something similar, but fotgot where ), do a search from google.
Hope it helps.
 
Laudney Ren
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When connect to a remote IP address and port, use socket's connect(). Then call socket's getOutputStream and write to the outputstream.
More details on APIs.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!