このページはまだ日本語訳がないため、英語の原文を表示しています。
その他portmap
game/pkg/online/portmap is the stable contract for player-hosted gateway mappings. Request validates the transport protocol, internal port, and lease lifetime. Providers return a Mapping with an external address, renewal, and close operations. The default provider reports ErrUnsupported until a platform provider is installed.
Falling back to a relay
Install a native UPnP, NAT-PMP or PCP provider with portmap.SetProvider. When Open returns ErrNoGateway, ErrRefused, ErrDoubleNAT or ErrUnsupported, the player's host cannot be reached directly: fall back to netplay.RelayTransport.