Android Question list of Ip address

a_carignan

Member
Licensed User
Longtime User
I'd like to know how to create a list of network hardware (Ip Address) available around my phone?
 

DonManfred

Expert
Licensed User
Longtime User
Connect to you wlan
Get your actual IP (ex 192.168.1.10)
Ping all IPs in your Subnet (192.168.1.*)
B4X:
dim p as Phone
Dim sb As StringBuilder
dim i as integer
for i = 0 to 255
  p.Shell("ping -c 1 192.168.1."&i,Null,sb,Null)
  Log(sb)
next

BUT

All this only works (if it works) only in you local network. Not in other networks you dont have access to.

AND

some of the pc's MAY NOT answer due to firewall or other restrictions
 
Upvote 0

a_carignan

Member
Licensed User
Longtime User
It seems that from time to time he scores "GC_CONCURRENT freed 397K, 17% free 10571K/12624K, paused 1ms +1 ms, 18ms total" and that it has no connection to a server avaialble.
 
Upvote 0
Top