How can I connect to a CIFS/SMB share on a non-default port?

6,764

Short answer, use a VPN. I don't think even Samba would support this without changing the code.

Longer answer, use another method like WebDAV that can be securly run over the public internet (albeit don't try and use the internal Windows WebDAV client, I've not managed to make it work on XP or Win 7).

Share:
6,764
fsckin
Author by

fsckin

Updated on September 17, 2022

Comments

  • fsckin
    fsckin over 1 year

    I'm trying to get a contractor connected to a CIFS share (port 445). He's not a big shop (so no go on using VPN). His ISP blocks outgoing connections on port 445.

    I've been doing some rsync to ftp madness as a workaround to have the share available to him, but it's getting out of control -- we're syncing nearly 40GB a day to an external ftp site and it's going to be much easier just to have him connect and only grab the stuff he needs.

    So... I can have the CIFS share open to the internet (filtered to allow access to his IP only) on port 446. How the heck can he connect to that?

    I looked through "net use" and didn't see anything about using another port.

  • fsckin
    fsckin about 14 years
    WebDAV or FTP will probably have to be the solution. Thanks!