RPC works between two processes. These processes may be:

on the same computer
on different computers connected with a network
both (a) and (b)
none of the mentioned