Table of Contents

Class GameAddress

Namespace
FishMMO.WebServer
Assembly
WebGLServer.dll

The game server's public address, for the connection help page.

public static class GameAddress
Inheritance
GameAddress
Inherited Members

Remarks

Some security software excludes traffic by IP address only, so the help page has to show the address the game connects to. It is resolved from the configured GameHost rather than written into the page, because the address can change. Results are cached briefly so the page cannot be used to make this server hammer DNS.

Methods

ResolveAsync(string, CancellationToken)

The IPv4 and IPv6 addresses host resolves to, IPv4 first. Empty when it cannot be resolved.

public static Task<string[]> ResolveAsync(string host, CancellationToken token)

Parameters

host string
token CancellationToken

Returns

Task<string[]>