I have a Samba server say at "abstergo.m12.in"

I'm fairly new to Samba as I usually use SFTP for file transfers but I wanted something more Windows Native.

I used the samba config from http://www.linux.com/learn/tutorials/305771-quick-and-dirty-samba-setup but changing the directory and the share name.

I'm trying to map the network drive. I try using //abstergo.m12.in/sharename but with no avail.

What I'm asking is how to setup the server (or client) so that I can connect to it remotely.

Edit: For some clarification I'm trying to access it remotely. over the internets.

  • 3
    You kind of have to describe the problem. Just saying it didn't work isn't very helpful. Are you trying to access a Samba server over a WAN? If so, that's a terrible idea. The SMB protocol is only designed for file sharing over a LAN. (It can be used over a VPN, though performance tends to be awful.) Dec 31 '12 at 8:43
  • edited the question.
    – Quinton M.
    Dec 31 '12 at 8:48
  • 1
    Windows uses backslashes in UNC paths. Dec 31 '12 at 9:15
  • 1
    Note that many ISPs block the Windows file sharing ports, so you're likely to have problems trying to do it that way.
    – Cry Havok
    Dec 31 '12 at 10:43
  • 1
    @qmarchi: Just don't do that. It's the wrong tool for the job. Samba is a LAN thing, not a WAN thing. If you have no choice, you can get it to work over a VPN, but performance will be terrible. Whatever your outer problem is, there are better solutions. Dec 31 '12 at 18:44

As @David noted this is not simple to use samba from wan. In local net deamon swat provides the tools to confugure samba server over http://localhost:901 but this is not directly accessible as wan web host. You rather look for webdav WebDav DavenPort or ssh with portforwarding use. Found similiar question on ServerFault


Setup Tinc VPN on both the machine and watch magic happend http://www.tinc-vpn.org/

Tinc will create a virtual private network over wan (the internet) and if you have a fast outbound bandwidth it will stream video/audio just fine, i have tried it a few times and it plays pretty reliably inside tinc tunnel (windows share)


Using Samba/Windows file sharing over public networks is very insecure and inefficient. Don't do that.

If you want something more "windows native" - just use ftp support built in every Windows operating system. It's called "network locations".

Tutorial is here: Work with files on an FTP site (microsoft.com)

On server side - you can use Microsoft IIS FTP server which is built in Windows (XP, 7, 8).

Tutorial is here: Set Up FTP in IIS 7 (microsoft.com)

You can go even further and use free FtpUSE tool. It is not built in windows, but allows you to map ftp locations like windows network drives and after you configure it - you see your ftp like disk. It may be helpful for scripting.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.