How to access SMB share from windows over the internet with specific port number

Hamza Hassan 1 Reputation point


I have a SMB server running on windows port 445. When I want to connect to this server on the local network, everything works fine. I'm getting into trouble when I want to connect to my SMB server over the internet specially through windows. In router I forwarded a port 4455 to my SMB server ip with internal port 445.

I have managed to access that SMB server through Android with port 4455 over the internet. How to do the same thing through windows with port 4455.

I try to connect:

  1. go to My computer
  2. Click add network location
  3. Enter x.x.x.x as ip (ofcourse I enter a real public IP)
  4. Then try to connect

What I want:

I want to connect as described above, but I want to specify a port number (4455) so I can connect to a different port rather than 445.

Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
630 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Candy Luo 12,656 Reputation points Microsoft Vendor

    Hi ,

    If you want to share file over the internet using an internet URL like FTP://69.252.XX.X:21/ in your browser. You can have port forwarding on your router point to the internal server that is running FTP an apply proper file protection on the directory being serviced by the FTP server.

    You can also consider using a VPN connection. Set up a VPN between your client and SMB server and tunnel SMB through the VPN.

    Best Regards,



    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.
    0 comments No comments

  2. MotoX80 31,571 Reputation points

    I would suggest that you install the OpenSSH feature on Windows and then configure your router to forward port 22. On the client, use WinSCP or Filezilla to connect via SFTP/SSH. That insures that all network traffic between the 2 systems over the internet is encrypted.

    I have not tired this but it might work for you.

    0 comments No comments