Go Back   The macosxhints Forums > OS X Help Requests > Networking



Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 01-24-2002, 05:57 PM   #1
BAT
Prospect
 
Join Date: Jan 2002
Posts: 3
Exclamation Change the os x ftp server port

Hi,

For weeks, I have been looking for the way to change the os x ftp server port.
Indeed, this port is set up to 21 by default. And, because of my university firewall, I would like to set it more than 512, like 1021 for instance.

Different ways I tried :
- search on many web sites : nothing
- man ftpd : nothing
- modify /etc/services : nothing
- and many other things... : nothing !

I think now that the only thing I could do is to install another ftp server, but I would really like to use os x ftp server...

Thks a lot for help.

Bat.
BAT is offline   Reply With Quote
Old 01-24-2002, 06:14 PM   #2
at_sym
Triple-A Player
 
Join Date: Jan 2002
Posts: 179
Hey Bat--

I just noticed this on VersionTracker yesterday:

"PortReflector is designed to accept TCP connections on a configured port and reflect them to another host or port number. "


The site is at http://www.wickedlysimple.com/PortReflector/index.html

Could this be what you're seeking?
at_sym is offline   Reply With Quote
Old 01-24-2002, 06:24 PM   #3
BAT
Prospect
 
Join Date: Jan 2002
Posts: 3
Hi at_sym !

I'll go to download it right now and try it!

And, we will see...

Thanks again !
BAT is offline   Reply With Quote
Old 01-24-2002, 06:39 PM   #4
griffman
MVP
 
Join Date: Dec 2001
Location: Portland, OR
Posts: 1,472
Here's a non-third-party solution, and I found it in the macosxhints database:

Running services on alternate ports

I just did a search on "port number" to find that...

-rob.
griffman is offline   Reply With Quote
Old 01-25-2002, 05:27 AM   #5
BAT
Prospect
 
Join Date: Jan 2002
Posts: 3
Hi griffman,

I did this search and I already found that, but it doesn't work :

echo 'ftp2 5021/tcp' | niload -m services .

returns "niload: can't update NetInfo /services/ftp2: Authentication error"
even with "sudo", and even with actived authentification in the NetInfo App.

No problem for this line in inetd.conf :
ftp2 stream tcp nowait root /usr/libexec/tcpd ftpd -l

Moreover, for the first line, you could directly add/modify a service with the NetInfo App. For instance, modify the ftp port of the native service "ftp" and turn it into 5021, instead of create a new service "ftp2".
But it doesn't work too...
BAT is offline   Reply With Quote
Old 01-25-2002, 09:03 AM   #6
griffman
MVP
 
Join Date: Dec 2001
Location: Portland, OR
Posts: 1,472
Odd...

That's how I've always reset the services on my machine -- I run FTP, SSH, and the web server on higher ports. The web server and SSH are both easy, and I've done FTP both ways - changing it at the command line, and via NetInfo Manager.

[Begin experiment]
OK, I deleted my "ftp2" domain from NetInfo Manager, leaving "ftp" pointing at port 21. Changed port 21 to port 5232 (randomly picked ;-). Saved changes. Stopped and restarted FTP server via the Sharing prefs panel. Updated my router to pass port 5232 to the Mac. FTP'd to the Mac from the PC on port 5232 and connected perfectly.
[End experiment]

Exactly what problems are you having changing this in NetInfo Manager?

-rob.
griffman is offline   Reply With Quote
Old 01-28-2002, 07:45 PM   #7
lancelot183
Prospect
 
Join Date: Jan 2002
Posts: 16
Question what about other services/apps?

what about Carracho, or Limewire?

i'm stuck behind a firewall, and i figure if i can fool my box into using port 23, say, (since that's open (don't ask why, i don't know)) then maybe i can get something to happen.

anybody know how to redirect/forward a port number?

i tried NetInfo Manager, but it doesn't have a service for carracho or limewire, and i don't understand enough to make a new one work.

thanks!
lancelot183 is offline   Reply With Quote
Old 02-16-2009, 04:33 AM   #8
purified_in_fire
Registered User
 
Join Date: Feb 2009
Posts: 1
Ok I might be dumb

I'm relatively new to mac and sometimes editing stuff like this is confusing but I really need to swap my FTP port and I have no Idea where to do this I hear talk about etc/services have no idea what that is can someone please help me change my ftp port to something else Telus is blocking 21.
purified_in_fire is offline   Reply With Quote
Reply


Posting 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

Forum Jump



All times are GMT -5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.