MagmaMc.UPnP 1.2.1

dotnet add package MagmaMc.UPnP --version 1.2.1
NuGet\Install-Package MagmaMc.UPnP -Version 1.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MagmaMc.UPnP" Version="1.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagmaMc.UPnP --version 1.2.1
#r "nuget: MagmaMc.UPnP, 1.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MagmaMc.UPnP as a Cake Addin
#addin nuget:?package=MagmaMc.UPnP&version=1.2.1

// Install MagmaMc.UPnP as a Cake Tool
#tool nuget:?package=MagmaMc.UPnP&version=1.2.1


MagmaMc.UPnP is a C# library that provides a simple interface for managing Universal Plug and Play (UPnP) port mappings. It allows you to create and delete port mappings using UPnP-enabled devices on your local network.


Creates a UPnP port mapping.

  • UPnPItem Create(ushort port, Protocol protocol, string name = "", ushort duration = 0): Creates a UPnP port mapping.
    • port: The port to be mapped.
    • protocol: The protocol for the port mapping (TCP or UDP).
    • name (optional): The name for the UPnP item.
    • duration (optional): The duration of the port mapping.


Deletes a UPnP port mapping.

  • void Delete(ushort exPort, Protocol protocol): Deletes a UPnP port mapping.
    • exPort: The external port of the port mapping to delete.
    • protocol: The protocol of the port mapping (TCP or UDP).


Retrieves the list of UPnP items.

  • UPnPItem[] List(): Retrieves the list of UPnP items.


MagmaMc.UPnP library is released under the MIT License.


Contributions to the MagmaMc.UPnP library are welcome! If you encounter any issues or have suggestions for improvement, please submit an issue or a pull request on the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 150 7/19/2023
1.2.0 136 7/18/2023
1.1.2 120 7/16/2023
1.1.1 121 7/15/2023
1.1.0 129 7/15/2023
1.0.0 138 7/15/2023

Added Support For More Frameworks