Can't connect to FTP server when I'm connected via hotspot

I need to connect to my webserver via FTP from my MacOS (13.4.1). When I'm connected via home internet provider, everything is OK. But when I connect via hotspot from my iPhone (iOS 17), I can't connect to FTP. The error message is "Connection timeout". The Internet in web browser is working perfectly, but FTP connection doesn't work. I tried several FTP clients (Filezilla, Forklift, ...), but still the same problem. 

 

A few weeks ago, I used this FTP clients without any problem with hotspot, so maybe it could be related with iOS 17 update. 

 

Has anyone same problem? Is there any possibility to analyze network settings to find out where could be the problem? I tried to switch off the Firewall on MacOS, but no change...

 

Thanks.

iPhone 13 Pro, iOS 17

Posted on Sep 20, 2023 4:30 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 20, 2023 8:24 AM

Being older than IP networking itself (yes, really), and its pattern of connections is fundamentally incompatible with modern network firewalls, and being wildly insecure, FTP quite often causes issues, and increasingly often simply gets blocked.


To get FTP to work with a firewall, one or both firewalls (on the local network, and in the remote network) must scan the FTP traffic and preemptively open up the second port. The direction of this second connection depends on whether the FTP connection is operating in active or passive mode. But it’ll always run into a firewall, if the firewall isn’t configured to scan FTP traffic.


(This second data connection used by FTP usually uses an ephemeral port selected at run-time, so there’s no way a firewall can predict that without communications with the FTP server or FTP client, which means either opening up the entire ephemeral range, or configuring the FTP server to use a particular sub-range and opening that, or (as is common on middling and higher-spec firewalls) scanning the passing FTP traffic.)


As FTP openly leaks the server credentials in cleartext, the recipient firewall and recipient FTP server need to process and relocate the arriving files too, as the server can otherwise become filled with unwanted or illegal files.


If you need file uploads with your web server, use HTTPS file uploads, or configure and use SFTP.


If you really need FTP, set up a VPN to wrap the connection; that VPN might be L2TP/IPSec, or maybe FTPS.


PS: also learn about Gifar and other types of polyglot files, particularly if you’re exposing potentially untrusted uploaded files.

Similar questions

63 replies

Sep 26, 2023 5:52 AM in response to lvieira01

lvieira01 wrote:

I can't convince my clients to change something they're been using for years without any issues. For what i've been reading last days if Apple doesn't come out with a solution fast, the only way to solve this is downgrading to iOS 16. It's what i'm planning to do.


Maybe not, but you should try. It is your data on(the)line, too. ftp is so unsafe that it's creepy. Ignorance may be a bliss, until it isn't.

Oct 4, 2023 4:55 PM in response to Erfurter101

I gave up with Apple on my iPhone 13 Pro, and reloaded iOS 16.7. And to Apple's loss, I normally update my phones every other version But with this problem, I'm not about to spend money on a new iPhone 15 Pro that I know will be unusable for ftp transfers. And even if and or when they get it fixed, I'm in no hurry to update my phone. I truly cannot believe how Apple isn't recognizing this issue, and why there isn't more out there on people and this issue.


I've been an Apple user since 1984, and have never seen Apple stick their heads in the sand so deep on this MAJOR issue...

Sep 21, 2023 5:42 AM in response to Rudegar

Yes, that was exactly what I did today. FTP client on iOS works perfectly in both cases - on wifi just as using cellular. That means there is no problem with my carrier, but with hotspot - connection between iPhone and MacOS.


Isn't is possible it's related to the update to iOS 17? A few weeks ago it worked normally via hotspot. At that time I had iOS 16.

Sep 23, 2023 12:16 PM in response to Tomas009

Tomas009 wrote:

I need to connect to my webserver via FTP from my MacOS (13.4.1). When I'm connected via home internet provider, everything is OK. But when I connect via hotspot from my iPhone (iOS 17), I can't connect to FTP. The error message is "Connection timeout". The Internet in web browser is working perfectly, but FTP connection doesn't work. I tried several FTP clients (Filezilla, Forklift, ...), but still the same problem. 
 
A few weeks ago, I used this FTP clients without any problem with hotspot, so maybe it could be related with iOS 17 update. 
 
Has anyone same problem? Is there any possibility to analyze network settings to find out where could be the problem? I tried to switch off the Firewall on MacOS, but no change...
 
Thanks.


My internet relies 100% on hotspot connection...

I have had no issues with hotspot on iOS 17.0.1 and FTP connection


my Firewall is ON


My FTP client has been Fetch for over 10 years w/ no issues

https://fetchsoftworks.com/


I would verify your server is up, if not simply try again later. Server issues are beyond your control and typically get resolved pretty fast. You can always contact your Host for any server side known issues before you beat your head against the wall



macOS 13.6

Sep 23, 2023 12:54 PM in response to leroydouglas

Fetch 5.8.3 (5K1506) Apple Silicon (Web Store) running on macOS 13.5.2 (22G91) English

Launched at 2023-09-23T19:49:28Z, 23/09/23, 21:49 (local)

Expires 08/10/23 T

Connecting to 2.42.xx.xxx port 21 (Mac OS X firewall is allowing connections) (2023-09-23T19:50:37Z)

An FTP connection to “2.42.xx.xxx” could not be opened because the connection timed out. (There might be a problem with your network, or the server might not be responding.)


Sep 25, 2023 7:40 AM in response to Timothy Easley1

Exactly the same situation. I'm also a photojournalist working for a news agency and getting the images on my client's server fast is my top priority. The last champions league match i did was a nightmare because of this issue. It has to be related to the iOS 17 update because it was the only thing that changed since the last soccer game i did. Please fix this ASAP! My job relies on fast transmission.

Sep 25, 2023 7:57 AM in response to ziomelo

I am sorry that this causes problems but I have to say that something is very wrong when an IT department in this day and age requires you to use a protocol has no encryption and is a horrendous security risk. Do they also login remotely using telnet? Like telnet was abandoned (and rightly so) years ago, and so must ftp. A public server using ftp is just irresponsible.

Sep 26, 2023 2:18 PM in response to Tomas009

Hello,


another photojournalist here, trying to upload over ftp sharing the internet from my iPhone but it just does not work!!! For me, it used to work, and then stopped before I updated to iOs17. Then I updated thinking it would start working, but nothing. My friend shares connection from his iphone 11 iOs17 and it works? It just does not make any sense. Hope someone finds a solution fast.

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.

Can't connect to FTP server when I'm connected via hotspot

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