Check if the execution of a paraview script is in local or client/server mode?

Hello every one,

is there a way to check, via python command, if we are connected to a remote server?
Basically, the same thing that we can see in Help->About-> Connection Information.
Thank you, for every information you can give me.

try this: