You need to implement a discover mechanism which is not trivial. You
have the following options

-- using a client/server approach where the server knows about the
connected clients. When a client gets Wifi connectivity it would tell
the server about its connection information. Another client could
request this information from the server to get all the connected
systems within the LAN.

-- client discovery: send a broadcast in your local lan and ask who is
available. All connected systems would respond back with their
connectivity information.

-- the most inefficient way is to enumerate over the possible IP
addresses and check whether they are reachable. Of course you would
not necessarily know which IP address belongs to which system.

Good Wifi AP have an internal table about the devices which are
connected. If you have knowledge how to change the Wifi firmware you
could modify your AP with supporting the client/server approach
described above.

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 9, 8:31 pm, James Morrissey <[email protected]> wrote:
> Hi all,
>
> I'm hoping someone here can help as I've had no luck searching for the
> information I'm looking for.
>
> I've written a small utility application which my users can type a host
> name or an IP address to connect to.
> What I'd like to do is discover all discoverable devices on my WiFi
> network (ie. in Windows when you find other computers on the network),
> so that I can present my users with a list of computer names / IP
> addresses - rather than them having to already know the name / IP.
>
> Can anyone point me in the right direction?
>
> Regards,
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to