connect to another machine by ip address

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
 
P

Pavel Minaev

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top