khaled_jawaher -2 Junior Poster in Training

i want to know how to put the path in the fuction Naming.lookup ("//....").
suppose that i want to call the remote object in 2 cases:
1. server and client stands on local machine
for example remote object and sever stands in folder c:\rmi
i want the exact path please
2. server and client don't stands on same machine
for example remote object and sever stands in folder c:\rmi
i want the exact path please
thanx best regards