major_clanger: Clangers (Royal Mail stamp) (Default)
[personal profile] major_clanger
Anyone have any idea why I might be having problems ftp'ing files from my iBook to my filespace on Cix?

I wanted to upload some pics to link to them from LJ and as this was the first time I'd done this from my Mac I found a simple ftp client (Transmit) that would, it seemed, do the job for me.

Well, I could log in to Cix and view my existing files, but every attempt to upload ended with the transfer stalling and a zero-size file being created at the far end.

I then tried the UNIX command-line ftp. Exactly the same result.

I've checked my router firewall settings, and it is configured to allow all outgoing services. As for the OSX firewall, as I understand it the 'ftp' setting is for incoming services, not outgoing.

So what am I missing?

MC

Date: 2004-04-22 12:59 pm (UTC)
ext_58972: Mad! (Default)
From: [identity profile] autopope.livejournal.com
Wot the Doc said ...

When you connect to a site via FTP, you are opening a control channel. Commands to change directory, list files, etc, all go through the control channel. But for actual file transfers, FTP (the protocol) specified that a separate active connection initiated from the server end should be established (so that control over the session could be maintained via the control channel even while a file transfer was occuring over the data channel). Obviously, if a server tries to open a separate socket to your laptop the firewall is going to block it.

To deal with this problem, FTP also permits "passive" connections, in which the data is sent via the control channel. In the command line FTP client, you can use the -p command line flag (at least, the OS/X version of ftp(1) supports this). Or hunt for a suitable setting in your GUI program.

One thing gives me cause for concern: the OS/X command line FTP client defaults to passive connections these days, by design. This bears some digging ...

Profile

major_clanger: Clangers (Royal Mail stamp) (Default)
Simon Bradshaw

January 2022

S M T W T F S
      1
23 45678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 11th, 2025 01:12 pm
Powered by Dreamwidth Studios