이 페이지는 아직 한국어로 번역되지 않아 영문 원문을 표시하고 있습니다.
더 보기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.