posted 14 years ago
To open a file from a remote machine, you need 2 things:
1. Client software. This is software that must reside on the client machine that understands how to locate the remote machine (via network or other channels), to request the file, and to access the file data.
2. Server software. This is software that must reside on the remote machine that understands how to handle requests coming in from the client to access, return, and where allowable, to update files on the remote machine.
Additionally, the server software must be configured to provide the client-accessible points by which the client may access the files in question.
Windows contains a builtin client for the Windows Networking File System, formally known as CIFS (formerly SMB). You use Windows Shares on the server to present the client-accessible parts of the server's file system. The client part is transparently built into the Windows file I/O calls and takes over when a file is opened on a drive defined as remote (via the NET USE command) or via a UNC network filename (\\hostname\sharename).
Unix/Linux machines have installable server and client software, as they have more options. For CIFS, the gold standard is Samba. For traditional Unix filesharing, it's NFS. There are many others, but these two are the most common these days. There is an NFS client for Windows, but it's a commercial third-party product.
Of course, not all files actually need to be "opened". Sometimes it's sufficient to get or put a copy of a file. For cases like this, we have web servers (using web brpwsers as the clients), FTP clients and servers, and other facilities such as rsync. The difference between "opening" a file and copying it is that an open file may be accessed internally via direct filesystem calls. So, for example, if you wanted to change line 253 of a million-line text file, it's less overhead to open the file, skip down to line 253, replace it and close the file than it is to download the file, do the same thing locally, then upload the modified file.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer