# mDNS Advertisement from a Homey App

**URL:** <https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861>\
**Category:** Developers\
**Created:** [October 11, 2024, 8:16am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861 "2024-10-11T08:16:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcaceiro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rcaceiro/32/79267_2.png) [@rcaceiro](https://community.homey.app/u/rcaceiro)\
**Post date:** [October 11, 2024, 8:16am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/1 "2024-10-11T08:16:39Z")

</div>

Hello everyone,

I am trying to develop an app that needs to advertise through mdns, on my machine works, on Homey the record never appears.

Anyone know something the helps?

Thank you

---

<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:** [October 11, 2024, 8:35am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/2 "2024-10-11T08:35:25Z")

</div>

You have to provide more information.

But in general, what’s most important is that your device and Homey are in the same network.

---

<div class="post-metadata">

**Author:** ![rcaceiro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rcaceiro/32/79267_2.png) [@rcaceiro](https://community.homey.app/u/rcaceiro)\
**Post date:** [October 11, 2024, 9:47am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/3 "2024-10-11T09:47:37Z")

</div>

OK, basically I have to make an app to expose the homey devices via matter to other platforms.

I have every device in the same network, I can see the advertsement of homey itself, (\_homey.\_tcp.local).

I know that HomeyKitty works and it needs mDNS also, so I don’t know if there is some limitation.  
I’ve tried 3 differents libraries to do it.

---

<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:** [October 11, 2024, 9:58am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/4 "2024-10-11T09:58:55Z")

</div>

> [@rcaceiro](#):
>
> OK, basically I have to make an app to expose the homey devices via matter to other platforms.
> 
> I have every device in the same network, I can see the advertsement of homey itself, (\_homey.\_tcp.local).

Oh I misunderstood, I thought you were looking to discover devices, but you want to make your Homey (app) discoverable.

> [@](#):
>
> I know that HomeyKitty works and it needs mDNS also, so I don’t know if there is some limitation.  
> I’ve tried 3 differents libraries to do it.

There shouldn’t be a limitation. Like you said, HomeKitty also uses mDNS (although that’s all handled by the HomeKit library that it uses).

Is your app available on Github or similar, so I can take a look at it?

---

<div class="post-metadata">

**Author:** ![rcaceiro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rcaceiro/32/79267_2.png) [@rcaceiro](https://community.homey.app/u/rcaceiro)\
**Post date:** [October 12, 2024, 10:58am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/7 "2024-10-12T10:58:14Z")

</div>

Not yet, it is starting.

Humm something very very strange, I’ve copy and past code from Homekitty just to figure out what I am doing wrong, doesn’t work.

I just pull the code from HomeKitty, wrote the command npm i and homey app run, guess what doesn’t publish the mdns, however if I install the latest version from the app store it works.  
😒

---

<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:** [October 12, 2024, 10:59am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/8 "2024-10-12T10:59:32Z")

</div>

Ah, if you run `homey app run` the app is running inside a Docker container, which will probably be causing the problem.

Instead, use `homey app run --remote` to run the app on Homey directly.

---

<div class="post-metadata">

**Author:** ![rcaceiro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rcaceiro/32/79267_2.png) [@rcaceiro](https://community.homey.app/u/rcaceiro)\
**Post date:** [October 14, 2024, 10:39am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/9 "2024-10-14T10:39:45Z")

</div>

Oh, really … I will try

---

<div class="post-metadata">

**Author:** ![rcaceiro](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rcaceiro/32/79267_2.png) [@rcaceiro](https://community.homey.app/u/rcaceiro)\
**Post date:** [October 14, 2024, 10:52am UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/10 "2024-10-14T10:52:39Z")

</div>

Ok I was checking the homey app run options it it worked with -n host.  
I found it faster for development, but the remote option works as nice, but provably is nice to check if works and then do the normal developement with the -n option.

Thank you for the assistance.

---

<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:** [October 14, 2024, 1:28pm UTC](https://community.homey.app/t/mdns-advertisement-from-a-homey-app/117861/11 "2024-10-14T13:28:47Z")

</div>

Ah yeah, that would also work 👍🏻
