Class PortMapper

java.lang.Object
zombie.core.znet.PortMapper

public class PortMapper extends Object
Created by serge on 19.12.2015.
  • Constructor Details

    • PortMapper

      public PortMapper()
  • Method Details

    • startup

      public static void startup()
    • shutdown

      public static void shutdown()
    • discover

      public static boolean discover()
    • igdFound

      public static boolean igdFound()
    • addMapping

      public static boolean addMapping(int wanPort, int lanPort, String description, String proto, int leaseTime)
    • addMapping

      public static boolean addMapping(int wanPort, int lanPort, String description, String proto, int leaseTime, boolean force)
    • removeMapping

      public static boolean removeMapping(int wanPort, String proto)
    • fetchMappings

      public static void fetchMappings()
    • numMappings

      public static int numMappings()
    • getMapping

      public static PortMappingEntry getMapping(int index)
    • getGatewayInfo

      public static String getGatewayInfo()
    • getExternalAddress

      public static String getExternalAddress(boolean forceUpdate)
    • getExternalAddress

      public static String getExternalAddress()