change afp port

Hello everybody,

is it possible to change the afp port number from 548 to a diferent one?
I have two macs (running Leopard) under a Linksys router and I can forward the default port to only one of them.

May anyone please help me?

Alessio

Mac OS X (10.5.2)

Posted on May 22, 2008 3:04 PM

Reply
8 replies

May 23, 2008 12:18 AM in response to V.K.

Hi,

first of all thank you for helping.
I tried to connect as you suggested, but it didn't work.
On the router Linksys I forwarded the port 7777 to my mac ip, tried to open an afp session, but the port is not automatically changed by my mac.
I also tried this software: http://www.hornware.com/sharepoints/
It lets you change the port, but it doesn't work either.
Maybe I set it wrong.

May 23, 2008 7:50 AM in response to dolmayan

sorry, you are right, this doesn't seem to work. It works with localhost when I make an ssh tunnel so I thought it should work remotely like this but it doesn't seem to.

I found some [page|http://forums.osxfaq.com/viewtopic.php?t=5118&sid=ddb541ba5b452c23c048f2e a243e3ab5] which claims to give a procedure to change the default afp port. Look at the very last post there. You can try it and see if it works.

May 26, 2008 5:47 AM in response to dolmayan

dolmayan wrote:
Unfortunately and unexplainably my ip is banned and I can't get in that forum.

most bizarre.

Can you please paste here what's written?

Thanks in advance



Here is the relevant snippet:

*here is how you do it on a OSX client machine*

*-open the file library/preferences/com.apple.AppleFileServer.plist in Property List Editor (you can use textedit too, it is an xml file)*
*-change the value of afpTCPPort from 548 to your port of choice*
*-save the file back to library/preferences/*
*-goto the sharing prefpane in system preferences and turn personal filesharing off and back on*

Mind you, I have no idea if this will actually work.

Message was edited by: V.K.

BTW, yuo can always get around your isp ban using a free proxy.
Try www.vtunnel.com

May 26, 2008 6:07 AM in response to dolmayan

Unless I'm missing something, I don't think you have to change the AFP listening port on your Mac. Say you have Mac A and Mac B both listening on port 548. Configure the port mapping on your router so that port X (say 548) goes to 548 on Mac A and port Y (say 7777) goes to port 548 on Mac B.

Then use afp://your.routers.address to get to Mac A and afp://your.routers.address:7777 to get to Mac B.

This all assumes that you ISP allows incoming requests to these ports.

Message was edited by: deh2k

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

change afp port

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.