Identify machine (relatively) uniquely using unc path

Posted by Gareth on Stack Overflow See other posts from Stack Overflow or by Gareth
Published on 2010-04-22T12:12:56Z Indexed on 2010/04/22 12:33 UTC
Read the original article Hit count: 121

Filed under:
|

Using C#, and given that the user enters in a unc path. Is there a way to verify that 2 months down the line, when I'm writing a file to the unc path, that it is the same machine as when he entered it?

i.e. I'm writing some sensitive information to the path, and want to stop someone from putting another machine on the network with the same name / share etc and grabbing the output. Or if the software is running on a laptop and the user plugs it into another network, and there just happens to be a machine with the same name / share...

Any ideas, other than using the IP address (and verifying that its the same?). I don't necessarily have any rights on the remote machine other than write access to the unc share.

Yes, I'm probably being paranoid, but would like to know if anything is possible...

© Stack Overflow or respective owner

Related posts about c#

Related posts about unc