Table of Contents

Class PlayitApiService.PlayitTunnel

Namespace
McServerLauncher.Services
Assembly
McServerLauncher.dll

One tunnel as the agent reports it.

public record PlayitApiService.PlayitTunnel : IEquatable<PlayitApiService.PlayitTunnel>
Inheritance
PlayitApiService.PlayitTunnel
Implements
Inherited Members

Remarks

Proto is "tcp" or "udp": a crossplay server has one of each, because Java is TCP and Bedrock is UDP. PublicPort is the port players actually connect through, which is never the local one — Bedrock clients have to be given it by hand, and Geyser needs it for its broadcast-port setting.

Constructors

PlayitTunnel(string, string, int, string?, string?, string, int)

One tunnel as the agent reports it.

public PlayitTunnel(string Id, string Name, int LocalPort, string? AssignedDomain, string? CustomDomain, string Proto = "tcp", int PublicPort = 0)

Parameters

Id string
Name string
LocalPort int
AssignedDomain string
CustomDomain string
Proto string
PublicPort int

Remarks

Proto is "tcp" or "udp": a crossplay server has one of each, because Java is TCP and Bedrock is UDP. PublicPort is the port players actually connect through, which is never the local one — Bedrock clients have to be given it by hand, and Geyser needs it for its broadcast-port setting.

Properties

Address

public string? Address { get; }

Property Value

string

AssignedDomain

public string? AssignedDomain { get; init; }

Property Value

string

CustomDomain

public string? CustomDomain { get; init; }

Property Value

string

Id

public string Id { get; init; }

Property Value

string

IsUdp

True for the Bedrock half of a crossplay server.

public bool IsUdp { get; }

Property Value

bool

LocalPort

public int LocalPort { get; init; }

Property Value

int

Name

public string Name { get; init; }

Property Value

string

Proto

public string Proto { get; init; }

Property Value

string

PublicPort

public int PublicPort { get; init; }

Property Value

int