[android-developers] Re: Devices information using Wifi API

2009-10-21 Thread Forest Wang
By listening some specific Intents, your program could get the connection
info for WIFI.

You may need to investigate some code of the wifi setting.

2009/10/21 Roman ( T-Mobile USA) roman.baumgaert...@t-mobile.com


 If you want to get valid IP address you can try to enumerate over your
 LAN addresses. If your LAN network has an IP address like 192.168.1.0

 you can try to ping192.168.1.1, 192.168.1.2, ...

 If you get a response back, you know that there is another system
 which has the IP address assigned.

 Of course this is not the most efficient mechanism and might not be
 successful in all cases (clients in the network might not respond to
 ping) but it's a possibility ...

 With the usage of some linux commands like netstat you should be able
 to get also the corresponding MAC addresses of the IP addresses.

 --
 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 Oct 20, 8:35 am, sd swarup.do...@gmail.com wrote:
  Hi,
 
  I want to get the information of the devices that are connected to a
  Wifi Access point. Is there an API developed for that. Is it possible
  to retrieve the table information of the devices from a Wifi Access
  point? If yes then can somebody guide me how to go ahead with that.
 
  Thanks
 
  SD
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Devices information using Wifi API

2009-10-20 Thread kllrnohj

What you want to do isn't possible using any standard mechanism. You
could open an HTTP connection to the admin console of the access point
(eg, 192.168.0.1) and pull the information out of there, but you would
need to know the username/password of the admin console as well as
what page the information you want is located on. You would also need
to parse the information out of the HTML yourself.

Basically if this is something you are creating for a specific WiFi AP
that you control, then you could do it. Otherwise, you can't.

On Oct 20, 9:35 am, sd swarup.do...@gmail.com wrote:
 Hi,

 I want to get the information of the devices that are connected to a
 Wifi Access point. Is there an API developed for that. Is it possible
 to retrieve the table information of the devices from a Wifi Access
 point? If yes then can somebody guide me how to go ahead with that.

 Thanks

 SD

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Devices information using Wifi API

2009-10-20 Thread Roman ( T-Mobile USA)

If you want to get valid IP address you can try to enumerate over your
LAN addresses. If your LAN network has an IP address like 192.168.1.0

you can try to ping192.168.1.1, 192.168.1.2, ...

If you get a response back, you know that there is another system
which has the IP address assigned.

Of course this is not the most efficient mechanism and might not be
successful in all cases (clients in the network might not respond to
ping) but it's a possibility ...

With the usage of some linux commands like netstat you should be able
to get also the corresponding MAC addresses of the IP addresses.

--
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 Oct 20, 8:35 am, sd swarup.do...@gmail.com wrote:
 Hi,

 I want to get the information of the devices that are connected to a
 Wifi Access point. Is there an API developed for that. Is it possible
 to retrieve the table information of the devices from a Wifi Access
 point? If yes then can somebody guide me how to go ahead with that.

 Thanks

 SD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---