lontivero / Open.NAT

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

Using Open.Nat on Raspberian #48

Open duskotenkov opened 8 years ago

duskotenkov commented 8 years ago

The aplication is running on rapberry Pi with Raspberian. I had installed the mono framework and MonoDevelop to use the Open.Nat.

When I tried the Open:nat.ConsoleTest the application crash with error

System.EntryPointNotFoundException: SwitchToThread at at (wrapper managed-to-native) System.Threading.Platform:SwitchToThread () at System.Threading.Platform.Yield () [0x00000] in :0 at System.Threading.ManualResetEventSlim.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x0006d] in :0 at System.Threading.Tasks.Task.InternalWait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x00031] in :0 at System.Threading.Tasks.Task.Wait (Int32 millisecondsTimeout, CancellationToken cancellationToken) [0x0001f] in :0 at System.Threading.Tasks.Task.Wait () [0x00007] in :0 at Open.Nat.ConsoleTest.NatTest.Main (System.String[] args) [0x00006] in /home/pi/Documents/Open.Nat/Open.NAT/Open.Nat.ConsoleTest/Main.cs:40

on the network log file I have only 2 lines

Open.NAT Information: 0 : Start Discovery Open.NAT Information: 0 : Searching for: UpnpSearcher

The UPnP is enabled on my router.

lontivero commented 8 years ago

I was able to reproduce it. Thanks for reporting