Tushar Chinchalkar

unread,
Feb 14, 2017, 8:36:39 PM2/14/17
to MIT App Inventor Forum
I'm trying to get a list of all devices connected to the LAN wifi network that my phone is on. (running an app inventor2 app) 
is there a way to do this ? something similar to FING or angryIP or my IP scanner..
the end goal is to create a list of these IP's in a created app and select one for use.. like send a command using webviewr to  to the selected IP

here is a step by step use case: 
1. press button 1
2. list of all connected devices and their IP's // i need help to get these IP's
3.store the IP's in list view
4. select 1 IP from list
5. call webviwer (selected IP) e.g call webviwer htpp//:192.168.1.123/led ON

similar to Taifun's get all available ssid's, but im looking for just local connected device IP's

Abraham Getzler

unread,
Feb 15, 2017, 1:32:49 PM2/15/17
to MIT App Inventor Forum
There are only 255 possible local IP addresses in a type C local network.
So you can scan them using a list as a queue, a Clock for timeout detection and queue service,
and a Web component to issue http GETs.

ABG

Tushar Chinchalkar

unread,
Feb 15, 2017, 9:25:37 PM2/15/17
to MIT App Inventor Forum
thanks for your reply, i think that does make sense, would you be able to point me to a few examples or descriptions doing the same, unfortunately my codding knowledge is not too good. 

Abraham Getzler

unread,
Feb 15, 2017, 10:55:10 PM2/15/17
to MIT App Inventor Forum
The Web Services section of this FAQ shows examples of apps talking to http servers on the Web, and extracting data from them.

I don't recall seeing any that poll using a Clock.

Look for tutorials that use the Clock.


ABG

Reply all
Reply to author
Forward
0 new messages