bonjour icon indicating copy to clipboard operation
bonjour copied to clipboard

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

Open FelixSFD opened this issue 1 year ago • 0 comments

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?

FelixSFD avatar May 21 '23 13:05 FelixSFD