Class ExternalIpAlert

java.lang.Object
com.frostwire.jlibtorrent.alerts.AbstractAlert<external_ip_alert>
com.frostwire.jlibtorrent.alerts.ExternalIpAlert
All Implemented Interfaces:
Alert<external_ip_alert>

public final class ExternalIpAlert extends AbstractAlert<external_ip_alert>
Whenever libtorrent learns about the machines external IP, this alert is generated. The external IP address can be acquired from the tracker (if it supports that) or from peers that supports the extension protocol. The address can be accessed through the externalAddress() member.
  • Method Details

    • externalAddress

      public Address externalAddress()
      The IP address that is believed to be our external IP.
      Returns:
      the external address