network object
This method will retrieve the host or IP address for a given peer.
string get_peer_address(uint peer_id)
Parameters:
peer_id
The unique ID of the peer to retrieve the IP address for.
Return value:
The IP address on success, or a blank string on failure.
Remarks:
This function is useful when you want to display the IP address of a person who just connected to a listening server, for instance.
Example:
See the main network chapter.