Click here to Skip to main content
15,900,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every one
I add this UPNP port by c#

C#
NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass();
         NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection;
         //mappings.Remove(9603, "TCP");
         //mappings.Remove(9603, "UDP");

         mappings.Add(9604, "TCP", 9604, "192.168.1.199", true, "dri");
         mappings.Add(9604, "UDP", 9604, "192.168.1.199", true, "dri");


and when test port is open from http://www.yougetsignal.com/tools/open-ports/[^]
or any apps give me
Port 9604 is closed

so how I can open this port by code any code
thanks for any help
Posted
Updated 21-Sep-11 2:17am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900