Possible to find ip addresses of everyone in an ad hoc network?
843790Jan 2 2008 — edited Jan 2 2008Hi,
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.