Package nxt.util

Class UPnP

java.lang.Object
nxt.util.UPnP

public class UPnP extends Object
Forward ports using the UPnP protocol.
  • Constructor Details

    • UPnP

      public UPnP()
  • Method Details

    • addPort

      public static void addPort(int port)
      Add a port to the UPnP mapping
      Parameters:
      port - Port to add
    • deletePort

      public static void deletePort(int port)
      Delete a port from the UPnP mapping
      Parameters:
      port - Port to delete
    • getLocalAddress

      public static InetAddress getLocalAddress()
      Return the local address
      Returns:
      Local address or null if the address is not available
    • getExternalAddress

      public static InetAddress getExternalAddress()
      Return the external address
      Returns:
      External address or null if the address is not available