wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes networking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "networking" Watch "networking" New topic
Author

networking

nick kaushik
Ranch Hand

Joined: Sep 25, 2009
Posts: 48

Here goes : i was given a prgm to implement ARP.now i hav an idea if its design,but the question is how do i take IP of all clients automatically....is therr any way by which i can broadcast something without feeding all the IPs manually. the IPs start from 10.0.7.x---10.0.7.y . i was told that if i use IP 10.0.7.0 my masg will reach all the machines connected to this machine......is it so?
if not, please tell me a way so that i could send the msg to this range of IPs without manually hardcoding them in my progm?
(waiting.... :rolleyes

"ye shall know the truth & the truth shall set you free..."
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19722
    
  20

Please UseRealWords. I had a few problems reading your post with some of the language "shortcuts" you took. Here's an attempt of a proper translation:
nick kaushik wrote:Here goes : i was given a program to implement ARP. now i have an idea if its design,but the question is how do i take IP of all clients automatically....is there any way by which i can broadcast something without feeding all the IPs manually. the IPs start from 10.0.7.x---10.0.7.y . i was told that if i use IP 10.0.7.0 my message will reach all the machines connected to this machine......is it so?
if not, please tell me a way so that i could send the message to this range of IPs without manually hardcoding them in my program?
(waiting.... :rolleyes

Broadcasting is usually done with UDP. Arrival at clients isn't guaranteed though.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: networking