I'm tring to do something called "Port Forwarding" using UPnP Com assemply in c# , the following code works fine and map new external ip and port number to my device , but it seems that the ip is not my correct external ip number , because it is different from the one I get in IP-lookup websites like (whatismyipaddress.com and whatismyip.com) . this is my c# code (for the mapping) : NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass(); NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection; mappings.Add(20000, "UDP", 20000, "192.168.8.102", true, "Local Web Server"); foreach (NATUPNPLib.IStaticPortMapping portMapping in mappings) { Console.WriteLine(portMapping.Description); //gives me "Local Web …

Member Avatar
+0 forum 0

The End.