Zeroconfig/Bonjour/dns-sd: How to translate local. hostname into IP address

806 Views Asked by At

When I register new service with DNS-SD api in C and then try to discover this service on another computer in my LAN, I am getting after resolving this discovered service something like this:

enter image description here

Here hostname is: Michal's-iMac-5k.local.

How this translates to IP addrees, or how to use it to connect via TCP socket?

1

There are 1 best solutions below