title: Network file copy in .NET
body: <p>I have an Ubuntu box running a Samba share open to everyone. I can access it via \ip address so I know I have full access to it.</p>
  
  <p>From within my application I am trying the following but it will not work via the ip address only the DNS name. </p>
  
  <pre><code>// val = ip address
  File.Copy("\\\\" + val + "\\share\\vSphere\\vSphere.exe", Temp + "vSphere.exe", true);
  </code></pre>
  
  <p>I need to use the IP Address as people who are VPN'ing in won't be able to have the program access the dns name only the ip address.</p>