Facepunch.Steamworks Wiki

Steamworks.SteamNetworking.AllowP2PPacketRelay

Syntax

static bool AllowP2PPacketRelay( bool allow )

Description

Allow or disallow P2P connects to fall back on Steam server relay if direct connection or NAT traversal can't be established. Applies to connections created after setting or old connections that need to reconnect.

Arguments

bool allow

Returns

bool