6
Im tratando de establecer el reenvío de puertos usando C#, pero sigo recibiendo este error en Visual Studio.Reenvío de puertos (NAT UPNP) ERROR
Interop type 'NATUPNPLib.UPnPNATClass' cannot be embedded. Use the applicable interface instead.
este es el código:
NATUPNPLib.UPnPNATClass upnpnat = new NATUPNPLib.UPnPNATClass();
NATUPNPLib.IStaticPortMappingCollection mappings = upnpnat.StaticPortMappingCollection;
mappings.Add(9099, "UDP", 9099, "192.168.1.101", true, "Local Web Server");
alguna idea?
Encontré el código here.