lontivero / Open.NAT

Lightweight and easy-to-use class library to allow port forwarding in NAT devices with UPNP and/or PMP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open.NAT Raspbian Open.Nat.NatDeviceNotFoundException

alesimoes opened this issue · comments

I am using Open.Nat running on Raspberry PI Raspbian Linux, however it does not find my router and raises the exception below.
When I run the same code on WINDOWS it works fine. I use the .NET Framework 4.5.

Exception of type 'Open.Nat.NatDeviceNotFoundException' was thrown. StackTrace: at Open.Nat.NatDiscoverer+d__5.MoveNext () [0x00000] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter1[Open.Nat.NatDevice].GetResult () [0x00000] in <filename unknown>:0 at Axconn.SDK.NAT.Router+<Configurar>d__3.MoveNext () [0x00000] in <filename unknown>:0 27/01/2017 20:32:38.979 - OpenNat@axconn:> Erro ao mapear porta:10968 Exception:Exception of type 'Open.Nat.NatDeviceNotFoundException' was thrown. StackTrace: at Open.Nat.NatDiscoverer+<DiscoverDeviceAsync>d__5.MoveNext () [0x00000] in <filename unknown>:0 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in <filename unknown>:0 at System.Runtime.CompilerServices.TaskAwaiter1[Open.Nat.NatDevice].GetResult () [0x00000] in :0
at Axconn.SDK.NAT.Router+d__1.MoveNext () [0x00000] in :0
27/01/2017 20:32:40.499 - OpenNat@axconn:> Erro ao mapear porta:24989 Exception:Exception of type 'Open.Nat.NatDeviceNotFoundException' was thrown. StackTrace: at Open.Nat.NatDiscoverer+d__5.MoveNext () [0x00000] in :0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x00000] in :0
at System.Runtime.CompilerServices.TaskAwaiter`1[Open.Nat.NatDevice].GetResult () [0x00000] in :0
at Axconn.SDK.NAT.Router+d__1.MoveNext () [0x00000] in :0

Hi,

Sorry I can't help but I have 2 questions:

  • How did you managed to make it work on Raspbian ? (Mono ?, .NetCore ?)

  • Is your issue solved ?

Thanks

Hi. Not solved.
Mono.

Thanks