I have a client-server application that uses .net remoting. The clients are in a LAN and i do not know their location in advance.
Sometimes we do file transfers and as an optimization I want to determine if a client is in fact on the same machine as the server (it is quite possible). In this case, I only need to do a File.Copy.
Let's say that a client calls the remote method:
RemoteFile server.GetFile(string path);
how can I determine if the client (the requester) is on the same machine?