Mapping a drive over the internet

  • Thread starter Thread starter Mike R
  • Start date Start date
M

Mike R

Hi
How do you map a drive over the internet?
and I need the port numbers that need to be
opened on the firewall as well.

Thanks
M
 
You should set up a VPN connection to the network with which you wish to map
a drive.

--

Thanks,
Marc Reynolds
Microsoft Technical Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
As the other person mentioned, you should go with a VPN as it's much more
secure.

However, if you have your own reasons for not wanting to do that, you can
simply share the drive and access it via the IP address as follows:

file:\\aaa.bbb.ccc.ddd\myshare

where aaa.bbb.ccc.ddd is the ip address of the machine in question and
myshare is the share name.

I believe you only need TCP port 445 available. Optionally it will use TCP
port 139 if it's available and 445 isn't (assuming NBT is enabled). If you
use port 139 and NBT enabled, then you may also need to open UDP ports 137
and 138, though I'm not sure.

Pete
 
The reasons for using a VPN are security as mentioned by the other
respondents,
but that is not necessary just to see it work.

The main problem for many people is name resolution, so using the IP address
avoids
this issue. From the command line these command will work if you have not
turned
on significant firewalls:

net use * \\ServerNameOrIPAddress\ShareName *
/user:ServerOrDomainName\UserName

The "UserName" must be an account in the Domain (or Server) mentioned before
the slash.
The first * let's the command pick a drive letter; the second * tells it to
ask you for the password.
 
And of course the TCP port that is used is 445 (SMB) so make sure it is open
through the firewalls (unless using the netbios in which case some
combination of 137-139 TCP/UDP is used - you'll find it on technet)

Arild
 
Back
Top