Windows client connect/open to a Shared Folder on a non-standard port (other than 445)?

_KUL 286 Reputation points
2021-02-25T08:08:34.683+00:00

Hello!
Each client computer can act as an SMB server and a client. It uses TCP ports 139 and 445 by default.
With a normal explorer (explorer.exe) we can normally get shared resources by connecting to the target server at \server.
Question - if the remote server is running on a port other than 445 (for example, a Linux SAMBA server), how can the client connect to shared resources? How do I correctly specify the connection string in the explorer string?
For example, the address \server:65001 causes the error 0x80004005

Windows for business Windows Server Devices and deployment Set up, install, or upgrade
Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2021-02-26T03:23:52.7+00:00

    Hi ,

    You might try to use NETSH port forwarding command to convert port 445 to another port. Then using \127.0.0.1 to access SAMBA server.

    For your reference:

    how to access samba share from Windows which is running on different port

    Please pay attention to what linzuojian said.

    Best Regards,

    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2021-02-26T06:44:08.49+00:00

    Hi @_KUL ,

    But the point of the question is more - how to open a path to an address with a non-standard port in the standard Windows Explorer?

    Please understand, I am not familiar with third-party SMB server. I will try to find some related resource to help you. Based on my research, it seems you need to use ssh tunneling:

    https://superuser.com/questions/1094931/ssh-tunnel-on-windows-10-to-linux-samba

    https://www.nikhef.nl/~janjust/CifsOverSSH/Win10Loopback.html

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,

    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.