Source IP of messages received

Hi - How can I know the source IP of the INV messages the node receives - namely which node sent me the INV message. Thanks

An instance of peer has a ‘host’ property that represents the IP address of the peer.

// attach peer events
pool.on('peerinv', function(peer, message) {
  // get the host
  var ip =;