This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 19655
    
  18

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: networking
 
Similar Threads
Setting up JBOSS server at home
Associate an IP address with a specific appBase
iPlanet Webserver Problem : Listern Socket Table...
Pinging a whole network and getting answers from listening servers
networking