Version: 2017.3
public bool isNetworkActive ;

Description

True if the NetworkServer or NetworkClient isactive.

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