eugenebokhan / bonjour

Easy-to-use Bonjour Service for iOS and macOS.
MIT License
51 stars 9 forks source link

How can I get the IP or hostname of a peer? #4

Open FelixSFD opened 1 year ago

FelixSFD commented 1 year ago

I use start() to start looking for Peers. One a peer was found, I need the IP-Address or Hostname.

When I debug the code, I can see these values inside the Peer-object:

Bildschirmfoto 2023-05-21 um 14 57 53

The public property name contains the display name of my device, but that doesn't help me, as I want to use Bonjour just to get the Host/IP in order to configure a connection to an (already existing) HTTP API on the peer-device.

Is there any possibility to read the IP/Host from the Peer?