Open ecklerpa opened 7 years ago
Oddly when I use the Mono.Nat dll and create the same functionality I can create the port mapping and delete with no problems
@ecklerpa the error 714 is not an Open.NAT error. It is the router which return the error and Open.NAT throws it.
Could you provide a piece of code to reproduce it? Coud you run the ConsoleTest console application and share the network.log file?
Thank you.
I'm able to CreatePortMapAsync with no problem and even show the routers table via a GetExternalIPAsync call... Open.NAT Information: 0 : Start Discovery BEGIN! Open.NAT Information: 0 : Searching for: UpnpSearcher The thread 0x3734 has exited with code 0 (0x0). Open.NAT Information: 0 : UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service!!! Open.NAT Information: 0 : Found device at: http://192.168.1.1:1780/InternetGatewayDevice.xml Open.NAT Information: 0 : 192.168.1.1:1780: Fetching service list Open.NAT Information: 0 : Found device at: http://192.168.1.1:1780/InternetGatewayDevice.xml Open.NAT Information: 0 : 192.168.1.1:1780: Parsed services list Open.NAT Information: 0 : 192.168.1.1:1780: Found service: urn:schemas-upnp-org:service:WANIPConnection:1 Open.NAT Information: 0 : 192.168.1.1:1780: Found upnp service at: /control?WANIPConnection Open.NAT Information: 0 : 192.168.1.1:1780: Handshake Complete Open.NAT Information: 0 : Stop Discovery Open.NAT Information: 0 : CreatePortMapAsync - Creating port mapping Tcp 1501 --> 192.168.1.100:1501 (Open.NAT) - thisHost However when calling await device.DeletePortMapAsync(mapping); function I get Open.NAT Information: 0 : DeletePortMapAsync - Deleteing port mapping Tcp 1501 --> 192.168.1.100:1501 (Open.NAT) - thisHost [Removing TCP mapping] 1501 Exception thrown: 'System.Net.WebException' in mscorlib.dll Open.NAT Warning: 0 : Server failed with error: 714 - NoSuchEntryInArray Exception thrown: 'Open.Nat.MappingException' in Open.Nat.dll Exception thrown: 'Open.Nat.MappingException' in mscorlib.dll Exception thrown: 'Open.Nat.MappingException' in mscorlib.dll [Done]