Version: 2018.2
public bool isNetworkActive ;

Description

True if the NetworkServer or NetworkClient isactive.

This is read-only. Calling StopServer() or StopClient() turns this off.