lontivero / Open.NAT

Lightweight and easy-to-use class library to allow port forwarding in NAT devices with UPNP and/or PMP
MIT License
420 stars 99 forks source link

Error 501 - PAL_UPNP_SOAP_E_ACTION_FAILED #79

Open seancabahug opened 6 years ago

seancabahug commented 6 years ago

Couldn't seem to spot a solution on here. Here's the log file from the ConsoleTest app: network.log

The only change I've made was modifying this line: var t = nat.DiscoverDeviceAsync(PortMapper.Pmp, cts); to var t = nat.DiscoverDeviceAsync(PortMapper.Upnp, cts);

lontivero commented 6 years ago

What Open.NAT version are your using? I fixed a similar defect (https://github.com/lontivero/Open.NAT/issues/28) years ago.

The log says everything works okay until you request the list of open ports and it fails because the router doesn't find the port number 0.

seancabahug commented 6 years ago

I'm using version 2.1.0.0 according to the reference properties.