Scan LAN (Local Area Network)?

4,565 views
Skip to first unread message

Pablo Bertu

unread,
Feb 26, 2018, 10:58:38 AM2/26/18
to MIT App Inventor Forum
Hi, 

I can get the phone local IP address using Taifun´s Wifi Extension Manager, and also its MAC Address.  Let´s say IP it´s 192.168.1.aaa.

Is there a way to scan all local network addresses (In my example, from 192.168.1.1 to 192.168.1.255) with the goal of getting the MAC Address for each IP address that has a device connected?

Can´t see how. 

Thanks!

Bertu

Pablo Bertu

unread,
Feb 27, 2018, 7:13:27 PM2/27/18
to MIT App Inventor Forum
Difficult, right?  :)

I would need to build a simplified version of FING (free app @ Google Play), retrieving only a list of found IP addresses, MAC Addresses, and ideally uPnP names.

Any ideas are welcome!

Bertu

Farzeen Harunani

unread,
Feb 28, 2018, 1:59:01 PM2/28/18
to MIT App Inventor Forum
Hi,
You can't do this in base App Inventor. You essentially want to build an ARP client (Address Resolution Protocol). 
In Unix (Mac/Linux), you can use "netstat" to get a lot of this information. 
You would need an extension for this, and unfortunately, I don't know of any that have been built that could do this. 
Farzeen

Juan Antonio

unread,
Feb 28, 2018, 4:02:25 PM2/28/18
to mitappinv...@googlegroups.com
Hola Pablo, gracias por la felicitación en el envío de la extensión de Install. No consigo ver las MAC de una red, lo he intentado de estas formas:

By this extension you can run netstat command by a shell Linux but netstat only get who is connect to you device

With this new extension you can get all WiFi IP of a local net, is very slow, but works, doesn`t get MAC:


com.KIO4_GetAllIp.aix
get_ip_wifi_local.aia
Reply all
Reply to author
Forward
0 new messages