public static void RemovePort(ushort port) { try { IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection; if (portMap != null) portMap.Remove(port, "TCP"); } catch { } }
public static void RemovePort(ushort port) { try { IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection; if (portMap != null) { portMap.Remove(port, "TCP"); } } catch { } }
public static void RemovePort() { try { IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection; if (portMap != null) { portMap.Remove(Port, "TCP"); } IsPortForwarded = false; } catch { } }
public static void RemovePort() { try { IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection; if (portMap != null) portMap.Remove(Port, "TCP"); IsPortForwarded = false; } catch { } }
public static void Remove(int eport, ProtocolType type) { var mapping = new UPnPNAT().StaticPortMappingCollection; mapping.Remove(eport, type.ToString().ToUpper()); }