Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'anonymous ftp through a firewall' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
anonymous ftp through a firewall
Authored by: ngb on Dec 30, '01 05:11:17PM

It's worth pointing out that if your Mac is behind a firewall you need to enable both ports 21 and 20.

When I tried to enable ftp on my router/firewall, the device set port 21 when I typed in 'ftp', but there was no mention of port 20. The result was that I could connect and send commands, but no feedback was displayed. A brief message appeared saying ftp couldn't open the proper port.

I checked here on MacOSXHints and at MacSlash but didn't find anything. So I hit the man pages.

Looking at the ftpd(8) manpage referred me to the services(5) manpage, which said to look in /etc/services for a list of a registered ports. There I found the following:

ftp-control 21
ftp-data 20

Anyway, this seems to have solved the problem. I hope this can help others from running into the same problem.

Nate



[ Reply to This | # ]