Table of Contents

Class RustPlusConnection

Namespace
RustPlusApi
Assembly
RustPlusApi.dll

Connection identity for a RustPlus client: the server endpoint and the player credentials a request is issued as. Grouping these into one value keeps the RustPlus constructor readable at the call site.

public sealed record RustPlusConnection : IEquatable<RustPlusConnection>
Inheritance
RustPlusConnection
Implements
Inherited Members

Constructors

RustPlusConnection(string, int, ulong, int, bool)

Connection identity for a RustPlus client: the server endpoint and the player credentials a request is issued as. Grouping these into one value keeps the RustPlus constructor readable at the call site.

public RustPlusConnection(string Server, int Port, ulong PlayerId, int PlayerToken, bool UseFacepunchProxy = false)

Parameters

Server string

The IP address of the Rust+ server.

Port int

The port dedicated for the Rust+ companion app (not the one used to connect in-game).

PlayerId ulong

Your Steam ID.

PlayerToken int

Your player token acquired with FCM.

UseFacepunchProxy bool

Specifies whether to use the Facepunch proxy.

Properties

PlayerId

Your Steam ID.

public ulong PlayerId { get; init; }

Property Value

ulong

PlayerToken

Your player token acquired with FCM.

public int PlayerToken { get; init; }

Property Value

int

Port

The port dedicated for the Rust+ companion app (not the one used to connect in-game).

public int Port { get; init; }

Property Value

int

Server

The IP address of the Rust+ server.

public string Server { get; init; }

Property Value

string

UseFacepunchProxy

Specifies whether to use the Facepunch proxy.

public bool UseFacepunchProxy { get; init; }

Property Value

bool