FTP Hosting Problems with Dynamic IP

Associate
Joined
17 Apr 2006
Posts
549
Location
Staffordshire
In the past week or so I'm having problems connecting to my hosting account via FTP. It'll take ages to connect, time out, or not connect at all. I can be connected, but files won't upload/download, or will only partly upload (so ruining my website for an hour in the case of a CSS file that didn't fully upload earlier).

When Vidahost allow my IP, it works fine, until I restart my PC and my IP has changed. I can't get a static IP with my ISP either, as they only offer them for business accounts.

I've never had this problem before, and I've had a dynamic IP for as long as I've used the Internet (early 2000s). Vidahost support have told me they can't tell me why it happens, as there's no clear reason. So every time I want to connect, I have to contact them with my IP, so they can allow it. I've been with Vidahost for a few years now and I haven't had a problem connecting via FTP until recently.

Is this common? Does anyone know what could be causing it?
 
Last edited:
Associate
Joined
1 Sep 2017
Posts
393
Seems like they are using some kind of while listing to allow access to their servers which will have issues with dynamic ip. My guess is how they setup their firewall, to me this needs to sorted out on their end as you are not the only one having this problem as there are others.
 
Associate
OP
Joined
17 Apr 2006
Posts
549
Location
Staffordshire
Have you got the log from your FTP client?
This sort of thing (some bits asterisked out)?

Code:
Status:    Resolving address of ***.***.***
Status:    Connecting to ****...
Status:    Connection established, waiting for welcome message...
Status:    Initializing TLS...
Status:    Verifying certificate...
Status:    TLS connection established.
Status:    Logged in
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/" is your current location
Command:    TYPE I
Response:    200 TYPE is now 8-bit binary
Command:    PASV
Response:    227 Entering Passive Mode (to ****)
Command:    MLSD
Error:    The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error:    Connection timed out after 60 seconds of inactivity
Error:    Failed to retrieve directory listing
 
Soldato
Joined
28 Oct 2006
Posts
12,456
Location
Sufferlandria
Doesnt sound like the firewall blocking your IP to me. You'd either get connected or not in that case. There wouldn't be any partial connection with some files correctly uploaded and some failed.

Try forcing the connection on active mode.
It's in settings > connection somewhere.

edit: had some time to check it.
yMQaWSN.png
It's in Edit > Settings > Connection > FTP then choose the 'Active' radio button.
 
Last edited:
Associate
Joined
1 Sep 2017
Posts
393
This sort of thing (some bits asterisked out)?

Code:
Status:    Resolving address of ***.***.***
Status:    Connecting to ****...
Status:    Connection established, waiting for welcome message...
Status:    Initializing TLS...
Status:    Verifying certificate...
Status:    TLS connection established.
Status:    Logged in
Status:    Retrieving directory listing...
Command:    PWD
Response:    257 "/" is your current location
Command:    TYPE I
Response:    200 TYPE is now 8-bit binary
Command:    PASV
Response:    227 Entering Passive Mode (to ****)
Command:    MLSD
Error:    The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error:    Connection timed out after 60 seconds of inactivity
Error:    Failed to retrieve directory listing
Looks like your Vidahost server is not configured properly for ftp over TLS ( Firewall or NAT Config at Vidahost end or Router ). Go into your ftp client settings and set your client not to use TLS, choose plain ftp either under connection or under encryption when entering your ftp details.

Whats happening is your ftp client has multiple modes to make a secure connection and your server reports to your client that it can use TLS and when your client tries to use TLS because server is not configured properly for TLS connection your connection gets halted.

Plain connection mode is not secure but you can contact your host to allow alternative secure connection modes.
Lets add some humour :)
MLSD - Lists the contents of a directory if a directory is named.
Client: Can you speak French ( TLS ) or not?
Server: Yes I can speak French ( TLS )
Client: Afficher la liste des répertoires ( MLSD )
Server: Huh?
Client: Afficher la liste des répertoires ( MLSD )
Server: Huh?
Client: Afficher la liste des répertoires ( MLSD )
Server: Huh?
Error: The data connection could not be established: ETIMEDOUT - Connection attempt timed out
Error: Connection timed out after 60 seconds of inactivity
Error: Failed to retrieve directory listing
 
Last edited:
Back
Top Bottom