Remote file sharing

Hi! I want to enable remote file sharing on my iMac running macOS Catalina 10.15.5. Actually, what I wanna do is to access my files and external hard drivers from iMac from my MacBook pro (and even from my iPhone X) from anywhere in the world.


I have set up DDNS on my router as long as port forwarding.


I have managed to get remote desktop via VNC to work but not file sharing... I want to make SFTP work but I have not figure it out... can anyone help me please?

iMac 27″ 5K, macOS 10.15

Posted on Jun 10, 2020 5:16 PM

Reply

Similar questions

32 replies

Jun 18, 2020 10:27 PM in response to Simos805

It seems you have set up properly.


I haven't used remote SMB connections lately, so I decided to try it again. Connecting from a Yosemite machine to Catalina worked and from Files app on an iPad to Catalina worked as well.


Curiously, If I try to establish a connection with myself (unlike scenario) using the hostname it doesn't work. Using the IP address it does work. I suppose it's because the system refuses to connect with itself. In fact, VNC gives me an error (You cannot control your own screen) when using the hostname and works flawlessly when using the plain IP address.


In my case my local network has a double NAT (Modem and Router). It seems to me that it's your case, too – if true this should be the "scheme" (addresses are not real):


Internet – External IP 123.456.789.000

|

Modem – Internal IP 192.168.1.1 – Port forwarding (22, 137, 138, 139 and 445) to WiFi Router 172.16.0.1

|

WiFi Router – Internal IP 172.16.0.1 – Port forwarding (22, 137, 138, 139 and 445) to iMac 172.16.0.50

|

iMac – Internal IP 172.16.0.50


At least the IP connection should work: smb://123.456.789.000


Speaking of FTP: for SFTP connections (SSH File Transfer Protocol) you have to use a proper FTP client which supports SFTP. Only plain FTP is supported by Finder.

Jun 20, 2020 9:39 PM in response to Simos805

You could try a product like https://www.realvnc.com/en/#products. I've used it on my local lan. They have a file transfer ability built in. I never used the file transfer. They use the same network protocol as your web browser so there is no messing with ports.


I have verizon fios. I stopped using their router and us my own. On less box to break and configure. Getting network to work is all about divide and conquer. Get a long ethernet cable. You should be able to test without two routers.


be sure all your data is backed up on drive that are not connected to your computer when you open up yourself to remote file access. We are doing our duty to cite best practices.


R

Jun 20, 2020 12:43 PM in response to Simos805

If you wondering the street, your going to find it hard to keep up with your dynamic ip address that you typically get from your isp. Most isp's provide you a dynmaic ip address. You have to pay extra for a static ip address.


I've forgotten the terminology, but there are services that map your isp dynamic ip address to a fixed name. I believe this is one such service. The service keeps track of the change ip addresses for your machine.

https://www.noip.com/support/knowledgebase/getting-started-with-no-ip-com/


R

Jun 18, 2020 4:41 PM in response to Marco Klobas

I tried both ftp and smb. Nothing works. I have open the ports 137-139, 445, 22 both on my modem and my WiFi router and both for internal and external ports. I have enabled file sharing, remote login and remote management on the iMac. As I said I have enabled port forwarding for the iMac’s IP and I have associated the iMac’s mac address with that IP from the router’s settings so the iMac is always on the same internal IP.


Any suggestions??

Jun 20, 2020 8:04 AM in response to Marco Klobas

Yes my iMac is connected to the Router thought WiFi. The router is connected to the modem thought ethernet and it operates as a WiFi access point.

I tried as you described with the port 5900 (to test if it works with VNC because that's worked before) and it's not working. Do describe, I tried:


My setup:

On the modem: LAN Host IP Address: iMac's IP, On the router: Internal IP: iMac's IP

This setup worked for VNC


Your setup:

On the modem: LAN Host IP: router's IP, On the router: Internal IP: iMac's IP

This setup isn't working for VNC.


Also my way of the setup (to set the iMac's IP both on the modem and the router for port forwarding) works for the Wake On Lan too.


Of course I tried your setup (router's IP on the modem, iMac's IP on the router) for the FTP's ports but isn't working as well.


I don't know why VNC isn't working with your setup because it's more logical to work that way, but maybe because my router it operates as an access point?

Jun 20, 2020 8:23 AM in response to Simos805

Hmm, that's quite strange.


I'm sorry, I'm running out of ideas...


My described setup is the one I use at home and is composed by a modem (provided by ISP) connected to a eero mesh network (both, ethernet and wireless) and it works (SSH, VNC, SFTP, SMB, etc.).


I don't know why your different "network-path-setup" is working with VNC and not with other protocols.


In case you want to follow BobTheFisherman's advice, take a look at nextcloud. Just an idea.


Let's see if other user have something to add to your home setup, though.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Remote file sharing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.