Facepunch.Steamworks Wiki

Steamworks.SteamNetworkingSockets.ConnectRelay

Syntax

static T ConnectRelay( SteamId serverId, int virtualport = 0 )

Description

This method should be used to allow people to connect to the server.
It return a ConnectionManager instance (you need to create a class that inherit from ConnectionManager) that you need to keep in order to send and receive data from server.
serverID need to be the SteamId from the host.

Arguments

SteamId serverId
int virtualport 0

Returns

T