This version of Unity is unsupported.

EditorApplication.isRemoteConnected

public static bool isRemoteConnected;

Description

Is editor currently connected to Unity Remote 4 client app.

This lets you to check if editor has successfully connected to Unity Remote 4 client, and data is being transferred between them.