This version of Unity is unsupported.
Method group is Obsolete

NetworkTransport.RemoveHost

Obsolete The UNET transport will be removed in the future as soon a replacement is ready.

Declaration

public static bool RemoveHost(int hostId);

Parameters

hostId Host ID to remove.

Description

Closes the opened socket, and closes all connections belonging to that socket.