0

I want to access a file on a different machine that is on the same network as me. I also need to authenticate when doing this.

For Example;

My Local IP : 10.1.1.138
Target Local IP: 10.1.1.235
File Location is \\10.1.1.235\FolderName\example.txt

Username for target machine is: "username"
Password for target machine is: "password"

I want to do like this:

string data = File.GetAllText(@"\\10.1.1.235\FolderName\example.txt");   //with authentication

How can i do?

Joe
  • 41,484
  • 20
  • 104
  • 125

0 Answers0