connect to another machine by ip address

  • Thread starter Thread starter Claudia Fong
  • Start date Start date
C

Claudia Fong

Hi,

Is it possible to use c# to connect to another machine by its ip
address?

I used to type \\150.0.0.81\c$ to access the c drive of another machine
in my explorer window...

Is it possible to do it in c#?

All I need is to access the c drive of different machine by its ip
address

Cheers!

Claudi
 
Hi,

Is it possible to use c# to connect to another machine by its ip
address?

I used to type \\150.0.0.81\c$ to access the c drive of another machine
in my explorer window...

Is it possible to do it in c#?

All I need is to access the c drive of different machine by its ip
address

It's called a UNC path, actually. It's a Windows feature, and is
transparently available to any application working with files. Just
use the normal file APIs (FileInfo/DirectoryInfo to browse files,
FileStream to open them), and give them UNC paths. It should just work
for you.
 
Back
Top