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
IdstringNamestringLocalPortintAssignedDomainstringCustomDomainstringProtostringPublicPortint
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
AssignedDomain
public string? AssignedDomain { get; init; }
Property Value
CustomDomain
public string? CustomDomain { get; init; }
Property Value
Id
public string Id { get; init; }
Property Value
IsUdp
True for the Bedrock half of a crossplay server.
public bool IsUdp { get; }
Property Value
LocalPort
public int LocalPort { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Proto
public string Proto { get; init; }
Property Value
PublicPort
public int PublicPort { get; init; }