How to get the IP address of IOT device when connected thru Wifi

howto

#1

Can you help me how to get the IP address of an IOT device connected to the mobile phone through Wifi using the APP.

This address will be used to interact with the IOT device using the app developed in Appybuilder.


Block used to get the IP address of the device through Wifi
#2

Confirm. Both devices are on the same network, and you need the phone to determine what the IP of the IOT device is?


#3

Yes. Both devices are on the same network. I need phone to determine the IP address using any block.


#4

Try this

https://puravidaapps.com/wifi.php


#5

Dear Cian,

Thanks for your suggestion. Will try that and will come back if i have any issues.


#6

Hi I have tried using the said block. Its returning the gateway address and not IP address.
am I doing any mistake i am not sure.

Can you share any block that you have used to get the IP address details.


#7

which block are you using? what about providing a screenshot of your relevant blocks?
are you trying to get the IP address of the access point? what about using the AccessPointIP method then?

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#8

I need to control multiple IOT devices connected to the router. Can you help me how to get the IP address of a router connected from the mobile.

  1. I connect to the router WiFi using wifi settings in the android OS.
  2. Later need to get the IP address of the router.
  3. later is their a way to get the IP addresses of all the IOT devices connected to the router.

This address will be used to interact with the IOT device using the app developed in Appybuilder.


#9

The Router IP is usually the gateway, most often .1 of the subnet you are on.

So if it is 192.168.0.10 is your address, the Router is usually 192.168.0.1

Here is an extension to see other devices on the same network.

https://groups.google.com/forum/#!msg/mitappinventortest/zcnT_IAPz2o/brQHAlZHBAAJ


#10

you might want to try the wifi extension and its AccessPointIP method
https://puravidaapps.com/wifi.php
Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#11

I merged your 2 topics


#12

Cian,

Will try this method and revert back


#13

Thansk a lot for showing interest in solving this issue.

I have attached the screen shot. I am getting the gateway address only with this block.Do you have any other method to get the exact IP address of the device.
Note: My requirement is to know the IP address mainly and if i get the Gateway address its an addon for me.

By any chance if you had made a new block which is working for you then kindly share the same.


#14

Cian,

I have tried with the .aia file available as an attachment. Unfortunately the app is crashing as soon as i open. I tried in multiple mobiles but the results remains same.


#15

using the AcessPointIP method obviously you only can get the IP address of the access point
but you could try the Extension to get all WiFi IP of a local net by Juan Antonio

Taifun


#16

Probably the method of following is different between you and me. I have tried accesspoint IP which is returning gateway address. Can you please share any .aia you have so that i can try exactly the same.

Also I have tried to get the details of all devices connected in the network with above aia shared in the link. But the APP is crashing as soon as i open. Do you have any solutions for this?


#17

you can find an example project here https://puravidaapps.com/wifi.php

you might want to ask the author of that solution
Taifun