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:
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?
I use
start()
to start looking forPeer
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
?