Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Changing default FTP port?

Changing default FTP port?
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 1999
Location: Chicago, IL USA
Status: Offline
Reply With Quote
Apr 16, 2003, 05:32 PM
 
Hi there,

My ISP (Comcast, formerly AT&T Broadband) has disabled incoming access on port 20 for all of their customers.

What this means is that I can no longer have clients FTP me large files directly to my machine, because port 20 is the default FTP port.

Does anybody have any step-by-step instructions on how to tell the built-in FTP client of 10.2.x to use a different port, instead of port 20? I'm assuming that it would involve a trip to the terminal, but I'm not sure what commands to type in.

Thanks!

Sincerely,
Scott
     
Senior User
Join Date: Mar 2003
Location: pittsburgh, pa, usa
Status: Offline
Reply With Quote
Apr 16, 2003, 05:41 PM
 
Are the clients connecting to YOU as an FTP server? Or are you connecting to them, and grabbing a file. The default port for FTP should be 21, unless it is SFTP.

-nate
-.-
12" SuperDrive
     
Fresh-Faced Recruit
Join Date: Oct 1999
Location: Chicago, IL USA
Status: Offline
Reply With Quote
Apr 16, 2003, 05:44 PM
 
Yes, they're trying to connect to my machine as an FTP server. It's possible that it's port 21 that's being blocked my ISP.
     
Clinically Insane
Join Date: Apr 2000
Status: Offline
Reply With Quote
Apr 16, 2003, 06:14 PM
 
Originally posted by scotty321:
Yes, they're trying to connect to my machine as an FTP server. It's possible that it's port 21 that's being blocked my ISP.
Do you use a router? If so, set up a rule like this:

203.164.55.55:90 -> 10.0.0.2:21

or whatever. Traffic hitting your external IP on port 90 will be redirected to port 21 on your internal machine at 10.0.0.2.

If you don't use a router...

Well, Comcast could be blocking 20 or 21. Either way might screw you. 20 is often used as the "data" port, if the server process is listening on 21.

ftpd -P dataport

will change the dataport, if only it has been blocked.

I think that's right. I can't remember how to change the other port, off the top of my head. It's probably configurable in the ftpd.conf file or whatever it may be called.

Correct me if I'm incorrect about any of this... it's too early in the morning to be thinking...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:59 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2