# MDNS and DNS Service Discovery library

**URL:** <https://community.particle.io/t/mdns-and-dns-service-discovery-library/9550>\
**Category:** Libraries\
**Created:** [January 22, 2015, 9:44pm UTC](https://community.particle.io/t/mdns-and-dns-service-discovery-library/9550 "2015-01-22T21:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![kasper](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/kasper/32/14366_2.png) [@kasper](https://community.particle.io/u/kasper)\
**Post date:** [March 2, 2016, 10:12pm UTC](https://community.particle.io/t/mdns-and-dns-service-discovery-library/9550/16 "2016-03-02T22:12:55Z")

</div>

Ok. What does service discovery actually do? I suppose it relates to this line in your example `subServices.push_back("printer");`

Actually the only thing I want is to publish my IP address in some way. So I suppose I can use the minimal example that you’ve posted in the thread above. However I’m curious what the services are and what the benefit could be.

Considering the time it takes. Maybe it related to the Udp firmware as well. Since I found this time also when I tried to parse messages. See this topic: [setTimeOut function for UDP?](https://community.particle.io/t/settimeout-function-for-udp/20668)

---

_[View the full topic](https://community.particle.io/t/mdns-and-dns-service-discovery-library/9550)._
