An RPC request is executed on the local workstation whenever:
1. The RPC request is a directed RPC, aimed at this workstation; or
2. The RPC is a service request and the #FNR_EXECUTE flag is set, unless the #FNR_IFSERVER flag is also set and this workstation is not the service server (from the point of view of this workstation).
The values of \RPCManager\CurSocketNode and \RPCManager\CurSessionID are set to reflect the workstation from which the RPC request was received. If the RPC was sourced from the local workstation, these will have valid values appropriate for the local workstation.