Access my PC through the internet

i have a belkin dd-wrt router. It connects to dyndns. I am able to access my Windows XP PC throught the internet, and i have already enabled RDP by forwarding port 3389 to my local IP-address. It works.

How do i enable access to my hard drive or any shared directory? I would like to access the share like this:

smb://dyndnsalias.com/HostnameOfMyPC/Share

Is this even possible?


Solution 1:

As others have stated, your router would have to be configured to forward the appropriate ports to the computer with the shares. You will be opening up a huge security hole, so consider other options.

Almost anything will be better than SMB/CIFS over the open internet. Personally I'd use SCP/SFTP to take advantage of SSH security. You could even tunnel SMB/CIFS over SSH... in theory. The only thing you'd need to do is 1) setup an SSH server on your computer, and 2) forward SSH ports from your router to the computer.

Now, to your question.

Your URI smb://dyndnsalias.com/HostnameOfMyPC/Share won't work because you have two hostnames in there, dyndnsalias.com and HostnameOfMyPC. In theory (and depending on where you were trying to use this), the format would be:

smb://dyndnsalias.com/Sharename
         ^               ^
         |               |
 OR      + host/ip       + share
         |               |
         V               V
\\dyndnsalias.com\Sharename

You can use any of these for the host/ip field:

  • your dyndnsalias.com alias (resolves to your public IP),
  • your public IP,
  • your HostnameOfMyPC, if and only if you've added it to your hosts file with your public IP (this would go in /etc/hosts on a Unix system, or C:\windows\system32\drivers\etc\hosts on Windows):

    x.x.x.x    HostnameOfMyPC
    

Solution 2:

You could try Hamachi: https://secure.logmein.com/products/hamachi2/ No port forwarding or dyndns needed!