This is not going to work to detect if something is local. Check IMap.localKeySet to detect if you are on the right box. Otherwise the call is forwarded to the remote machine.