Mono.Nat
Mono.Nat copied to clipboard
UPNP and NAT-PMP port forwarding for .NET
I am currently working on an application which uses uPNP to open ports for P2P communication. I am using DI quite heavily, and would like to be able to inject...
I use a router to expand my mesh, like a switch, and GetExternalIPAsync did throw "System.FormatException: An invalid IP address was specified". The string provided by the router was empty...
Trying to create a port mapping when one already exists does not error and continues (Or creates mapping). MappingError is not thrown.
[2020-08-15 19:47:37.213 +01:00] [INF] [5] Mono.Nat.Upnp.UpnpNatDevice: uPnP Response: , [2020-08-15 19:47:37.220 +01:00] [ERR] [5] Mono.Nat.Upnp.ResponseMessage: Unknown message returned. Please send me back the following XML:
So I messaged the dot net foundation way back when it began and they indicated a cursory interest in adding this library to their projects. Is that something you would...
https://tools.ietf.org/html/rfc6887
Hello, First of all i would like to thank you such an awesome library to deal with p2p problems. That being said, my current network topology is fairly simple -...
After creating a port mapping just like this: `device.CreatePortMap(new Mapping(Protocol.Ucp, Port, Port));` and verifying it's in the devices map with: ``` foreach (Mapping portMap in device.GetAllMappings()) { Console.WriteLine(portMap.ToString()); } ```...
Hello, Thank you for this project. I've created a fork named `SharpOpenNat` for multi-targeting .Net 8.0, .Net 6.0, .Net 4.8, and .Net Standard 2.0. - https://github.com/JeremyAnsel/SharpOpenNat - https://www.nuget.org/packages/SharpOpenNat