Orion.RakNet 0.1.0

dotnet add package Orion.RakNet --version 0.1.0
                    
NuGet\Install-Package Orion.RakNet -Version 0.1.0
                    
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="Orion.RakNet" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Orion.RakNet" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Orion.RakNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Orion.RakNet --version 0.1.0
                    
#r "nuget: Orion.RakNet, 0.1.0"
                    
#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.
#:package Orion.RakNet@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Orion.RakNet&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Orion.RakNet&version=0.1.0
                    
Install as a Cake Tool

Orion-Raknet

Standalone RakNet UDP transport for Bedrock-compatible servers.

NuGet: Orion.RakNet

Layout

Orion-Raknet/
  README.md
  src/Orion.RakNet/
    Orion.RakNet.csproj
    NetworkServer.cs
    NetworkConnection.cs
    NetworkServerConnection.cs
    RaknetServerOptions.cs
    Packets/

Defaults

RaknetServerOptions.Default mirrors a typical Bedrock dedicated-server RakNet block:

Field Default
Address 0.0.0.0
PortIpv4 / PortIpv6 19132 / 19133
Protocol 1001
Version 1.26.30
Message Raknet
MaxConnections 40
MtuMaxSize / MtuMinSize 1492 / 400
ValidatePort true

Usage

using RakNet;

// All defaults
var server = new NetworkServer();

// Override any subset
var server = new NetworkServer(RaknetServerOptions.Default.With(
    portIpv4: 19132,
    maxConnections: 100,
    message: "My Server",
    canAcceptConnections: () => true,
    playerCountProvider: () => onlineCount));

// Or object initializer
var server = new NetworkServer(new RaknetServerOptions
{
    Address = "0.0.0.0",
    PortIpv4 = 19132,
    Motd = "Hello",
    Protocol = 1001,
});

Branches

  • development — default working branch
  • main — release branch; merges that change src/** auto-bump the NuGet patch (+0.0.1) and publish

Build / pack locally

dotnet build src/Orion.RakNet/Orion.RakNet.csproj -c Release
dotnet pack src/Orion.RakNet/Orion.RakNet.csproj -c Release -o ./artifacts
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.1.0 120 7/22/2026