How to read a file from different machine on a network using its IP address

Hi All,

Can any one help me how to read a file from different machine on a network.
I have only IP address of other machine as input.the machine which is required to connect may have WindowXP or Linux installed as OS. At a time only machine will be connected whose IP address will be passed.And the machine which will read the file having WindowXP as OS.
This is a networking question. Not a C++ question.

http://letmegooglethatforyou.com/?q=linux+and+windows+networking+methods
Last edited on
You do know this is cracking and you probably shouldn't try this with your friends
Well, if the file is on a share, all you need to do is open the file via its UNC path: "\\10.1.2.3\sharename\dir1\dir2\file.txt" or whatever (escaping all those backslashes in the string literal, of course).

If the file isn't inside some shared director, there's no way. There has to be something acting as a file server in order to read a file remotely.
Topic archived. No new replies allowed.