Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Possible to find ip addresses of everyone in an ad hoc network?

843790Jan 2 2008 — edited Jan 2 2008
Hi,

I am developing an application which involves roaming laptops. I need to know when a laptop comes into range so that I may begin communicating with it. Specifically, what I need is to find out the IP address of the computer.

I have put a lot of thought into this, and think there are two possible ways to do this (BTW I am running linux):

1) Using some (unknown to me right now) command line utility that I can call from Java, and parse the output of the program for any ip addresses in the current ad hoc network. So far I have looked at iwconfig and iwlist, but have not found anything useful.

or
2) Somehow flood the ad hoc network so that every computer becomes aware that my PC is now in range, and can send a signal back to complete the handshake.

Anyway, hope you guys can lend me some insight into this problem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 30 2008
Added on Jan 2 2008
9 comments
298 views