# Smart device local ip adress

**URL:** <https://community.homey.app/t/smart-device-local-ip-adress/32541>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [July 18, 2020, 2:45pm UTC](https://community.homey.app/t/smart-device-local-ip-adress/32541 "2020-07-18T14:45:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marwan\_Magdy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marwan_magdy/32/17200_2.png) [@Marwan\_Magdy](https://community.homey.app/u/Marwan_Magdy)\
**Post date:** [July 18, 2020, 2:45pm UTC](https://community.homey.app/t/smart-device-local-ip-adress/32541/1 "2020-07-18T14:45:14Z")

</div>

Hello everybody,

I am trying to get a device local ip to control it locally. I got the ip of course using Fing app. However I’d like that Homey app could do this on its own. i tried implementing “Arpping” package but it doesn’t seems to work it returns empty list.

const Homey = require(‘homey’);  
const { ManagerCloud } = require(‘homey’);  
const Arpping = require(‘arpping’);  
var arpping = new Arpping({});  
async onInit() {  
this.log(‘MyDriver has been inited’);  
// const ip = await ManagerCloud.getLocalAddress();  
// this.log("ip: ", ip);  
const ip = ‘10.2.100.113’;  
arpping.discover(ip)  
.then(hosts =\> this.log(hosts))  
.catch(err =\> this.log(err));

```
}
```

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 18, 2020, 5:56pm UTC](https://community.homey.app/t/smart-device-local-ip-adress/32541/2 "2020-07-18T17:56:45Z")

</div>

> [@Marwan\_Magdy](#):
>
> i tried implementing “Arpping” package but it doesn’t seems to work it returns empty list.

I already answered you [in this thread](https://community.homey.app/t/device-local-ip/32099/2) why `arpping` doesn’t work on Homey.

---

<div class="post-metadata">

**Author:** ![Marwan\_Magdy](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marwan_magdy/32/17200_2.png) [@Marwan\_Magdy](https://community.homey.app/u/Marwan_Magdy)\
**Post date:** [July 19, 2020, 7:04am UTC](https://community.homey.app/t/smart-device-local-ip-adress/32541/3 "2020-07-19T07:04:16Z")

</div>

simply I am asking if someone had faced such problem and figured out a way through

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 19, 2020, 7:13am UTC](https://community.homey.app/t/smart-device-local-ip-adress/32541/4 "2020-07-19T07:13:02Z")

</div>

> [@Marwan\_Magdy](#):
>
> and figured out a way through

- Compile a version of `ping` as a static binary and upload it as part of your application (may not work either because you may require root privileges for `ping`)
- Scan each address in the local subnet to see if one is your device.
- Find another way to discover your device.

You’re not explaining what type of device it is, and how you think you are able to discover it through `arpping`.
