Release upnp port mapping

Discussion in 'OT Technology' started by celendin, Aug 17, 2007.

  1. celendin

    celendin New Member

    Joined:
    Feb 26, 2005
    Messages:
    697
    Likes Received:
    0
    Location:
    Melbourne Australia
    I've added a udp port map to my program and it all runs fine:

    { udp rule }
    newremotehost:=';
    newexternalport:='3466';
    newprotocol:='UDP';
    newinternalport:='3466';
    newinternalclient:=local_ip;
    newenabled:='1';
    newportmappingdescription:='UDP';
    newleaseduration:='0';

    add_port_mapping( newremotehost, newexternalport, newprotocol,
    newinternalport, newinternalclient, newenabled,
    newportmappingdescription, newleaseduration);

    But I want the program to release that port map as soon as the program shuts down.

    How do I do this?

    I was thinking about setting newenabled:='0'; but this doesn't work.
     

Share This Page