I'm using the code from Port Forwarding by Using "HNetCfg.NATUPnP" Ole Object Failed for port forwarding, works fine, except that I can't close the port when the application is terminated.
AddUPnPEntry(1234, 'Hello3', '192.168.1.34');
1234 port is still open even thoug I restarted my pc, I tested it on canyouseeme.org. So how can I close the port ?
EDIT: Solved, I just need to restart(turn off and on) my router to close the port again.