Member Avatar

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 ( and . this is my c# code (for the mapping) : NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass(); NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection; mappings.Add(20000, "UDP", 20000, "", true, "Local Web Server"); foreach (NATUPNPLib.IStaticPortMapping portMapping in mappings) { Console.WriteLine(portMapping.Description); //gives me "Local Web …

+0 forum 0

The End.