This version of Unity is unsupported.
Method group is Obsolete

NetworkTransport.RemoveHost

Obsolete 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.