Access a mapped drive outside home/lan network

Checkmate

New member
Local time
10:26 AM
Messages
1
:thumbsup:

So i have a pc in my house which i use a file server to and have folder in there that i need access to.

I can map a network drive if i'm connected to my network at home, but want to map a network drive in my office which is in a different location.

Also i can RDC to my file server, that is when i open port 3389. Tried it and it works.

Can anyone help me map the network drive outside my home network, do i need to open another port?

https://gyazo.com/f53b2f3389d723cab34acf42c2e8aa63

(let say my ip is 1.2.3.4)

Do i have to open a port then enter something like \\1.2.3.4:someportnumber\thefoldername


Preferably want to do this without using a VPN.

Thanks
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 64 bit
Yes, you can directly reach your shared folder from Windows Explorer as if you are home.

You have to forward port TCP 445 to 1.2.3.4's TCP 445
If you don't have a static IP, open a free account with DuckDNS on 1.2.3.4 (example, my-home-pc.duckdns.org
Now you should be able to reach your shared folder with:
\\my-home-pc.duckdns.org (or add shared folder as well)

Make sure you have password protected sharing turned on.

I will leave the safety aspect to others. :D
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
There are a couple of options for doing that, but that involve either installing new software, opening more ports or relying on third party services. I can think of the following approaches:

  • Open port 445 and expose the SMB server directly over internet (what GokAy said before basically). This is inmensely insecure, as the server service in Windows is only designed for local networking, and also forces to use your Windows credentials over internet.
  • Use a FTP running on the file server, point it to the same shared folder (or potentially a different one), open port 21 and the configured passive ports and use a standard FTP client to access the files (even Windows Explorer serves as a rudimentary FTP client). This is of course a bit more limited than a SMB share, because it only allows file copy, but it doesn't introduce a critical security vulnerability on the server. Usage of this obsolete protocol is however still a bad thing because it's entirely plain-text, including passwords. FTPS mitigates that issue.
  • Install a SSH server on the file server, open port 22 and use SFTP in the same way as FTP (maybe with a different client program, though). This gives the same flexibility of FTP, but with the increased security of a fully encrypted open protocol. It's also easier to route though firewall, as it only uses a single port and connection.
  • Install a SSH server on the file server and use it to tunnel the SMB protocol on port 445. This gives you the full flexibility of native Windows shares, plus the inherent security of SSH, but it's a bit more cumbersome to use.
  • Use a VPN. While you may not like it, it's a feasible solution to open a port just for that service and use it to tunnel the rest of the insecure SMB protocol. You can even rely on third-party services like Hamachi and remove the need for opening a port.
  • Install a normal web server and use the WebDAV extension to access shared folders though port 80. Good thing is that Windows Explorer is capable of mapping a drive out of it natively, allowing a similar functionality of SMB, though much slower. It also allows any regular web browser to view and download files. Being also plain-text, it's terribly insecure though, so usage of HTTPS (and port 443) is a must.
  • Use a third-party "cloud" storage and put the files there instead, so you can access them from both sides. It may or may not be practical, depending on how much data you have. It also comes with serious privacy implications if the data is important or confidential.

I personally have used SFTP on my home to reach my notebook from work. So far it had very few problems with this approach, but you may want to look into other options depending on how do you want to access your data and the knowledge of the possible users.


You have to forward port TCP 445 to 1.2.3.4's TCP 445
(...)
I will leave the safety aspect to others. :D

It's VERY INSECURE to do so. The built-in SMB server has never been designed to work over internet as it exposes details of your computer and network and was exploited numerous times. Exposing it to internet is just asking for troubles (and you'll find them pretty quickly in the wild :p)
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Alejandro85, wonderful post. Bookmarked! Thank you :)

I feel I need to investigate VPN for a home setting with or without a fixed IP.

How about..

Since OP is reaching a PC, perhaps add remote control software like TeamViewer etc. to the list of possibilities as well (if you won't need your files locally or if the files are large)?
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 7 Ultimate x64 SP1
CPU
AMD Phenom 2 1090T
Motherboard
Gigabyte GA-890FXA-UD5
Memory
2x8GB Kingston HyperX Fury Black 1600Mhz Unganged
Graphics Card(s)
MSI GTX 970 Gaming 4G
Sound Card
Realtek On-Board HD 7.1 Audio / Logitech G35
Monitor(s) Displays
3xAcer GD245HQ
Screen Resolution
1920x1080
Hard Drives
Samsung 850 Pro 512GB SSD - OS /
WD Caviar Black SATA 3 - 1 TBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GBx2 - Dynamic RAID 0 /
WD Caviar Green SATA 2 - 640GB - Internal Backup /
Seagate Barracude SATA 3 - 3TB - External Backup/ Sync
PSU
HighPower 1000W
Case
Cooler Master HAF 932
Cooling
Noctua NH-D14
Keyboard
Logitech G19
Mouse
Logitech G500
Internet Speed
100/4 Mbit Cable (100GB quota)
Antivirus
ZoneAlarm Extreme Security / MBAM Pro / MBAE Free / SAS Free
Browser
IE 11 - Firefox - Chrome
Other Info
Logitech F710/ G27/ G940/ Z5500 // TrackIR 5 // Nvidia 3D Surround Vision
Thanks GokAy, glad it was useful.

I didn't considered any kind of remote access at all, but OP said he already managed to do RDP over internet, so he could use that too. Sure it's an option, depending on what they're going to do with the files and with the server.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top