bonjour
bonjour copied to clipboard
How can I get the IP or hostname of a peer?
I use start()
to start looking for Peer
s. 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:
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
?