[try Beta version]
Not logged in

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

Feb 9, 2009 at 12:02pm
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.
Feb 9, 2009 at 7:34pm
This is a networking question. Not a C++ question.

http://letmegooglethatforyou.com/?q=linux+and+windows+networking+methods
Last edited on Feb 9, 2009 at 7:34pm
Feb 28, 2009 at 11:03pm
You do know this is cracking and you probably shouldn't try this with your friends
Mar 2, 2009 at 11:28pm
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.