title: Port Forward using UPnP - close port
body: <p>I'm using the code from <a href="https://stackoverflow.com/questions/12805067/port-forwarding-by-using-hnetcfg-natupnp-ole-object-failed">Port Forwarding by Using &quot;HNetCfg.NATUPnP&quot; Ole Object Failed</a> for port forwarding, works fine, except that I can't close the port when the application is terminated.</p>
  
  <pre><code>AddUPnPEntry(1234, 'Hello3', '192.168.1.34');
  </code></pre>
  
  <p>1234 port is still open even thoug I restarted my pc, I tested it on canyouseeme.org.
  So how can I close the port ? </p>
  
  <p>EDIT: Solved, I just need to restart(turn off and on) my router to close the port again. </p>