Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

how do i get afp to work through timecapsule

I am trying to get someone to access my iMac outside of my house using AFP. I have a timecapsule and cablemodem. My iMac is using airport to connect to the timecapsule. I have file sharing set up - a specified folder is shared and a user and password is set to the folder. It tells me an IP to use in the file sharing section, but when they go to connect - it says connection failure. What do I need to do to allow people to access my imac via afp?

Posted on Apr 19, 2011 12:03 PM

Reply
28 replies

Apr 19, 2011 12:18 PM in response to fyredog

To start users will need to know your Public (WAN-side) IP address. Is your TC directly connected to the Internet modem or downstream of it behind another router that has NAT enabled?


If your Time Capsule (TC) is configured to be your Internet router, then you only need to do two things to allow access to it from the Internet:


  • Using AirPort Utility, enable both the "Enable file sharing" and the "Share disks over Ethernet WAN port" options on the utility's Disks > File Sharing page.
  • On the utility's Summary page, note the value of IP Address. This will be the TC's WAN-side IP address.


To access the TC from the Internet, use Finder's Connect to Server option and enter <i>afp://TC's WAN-side IP address</i> in the Server Address box, and then, click on Connect.

Apr 19, 2011 1:31 PM in response to fyredog

It would be a lot easier, if you had a MobileMe account and just used Back to my Mac (BTMM) to do this.


Again, it would require that you open the AFP protocol port on the TC in order for remote AFP requests to make it to the iMac from the Internet.


You can find the appropriate ports in the following Apple Support article: http://support.apple.com/kb/TS1629 AFP uses TCP port 548.

Apr 19, 2011 1:43 PM in response to fyredog

Port mapping should not be required to access the TC, but it would be for accessing the iMac for AFP.


Configuring for port mapping takes two basic steps:

  1. Use the AirPort Utility to assign a Reserved DHCP IP Address for the iMac, and
  2. Again, using the AirPort Utility, configure port mapping to set TCP port 548 to forward to the iMac.


You will need to know the iMac's MAC address when you go to assign a Reserved DHCP IP address. Depending on how the iMac connects to the TC (wire or wireless) that would be either its Ethernet MAC address or its AirPort ID. Both of these can be found under System Preferences > Network.


Port Mapping is configured from: AirPort Utility > Select the TC > Manual Setup > Internet > NAT > Configure Port Mappings...


  • On the Port Mapping tab, click on the plus button to add a mapping.
  • Service: Leave the default
  • Public TCP Port(s): 548
  • Public UDP Port(s): leave blank
  • Private IP Address: enter the reserved DHCP IP address that you did earlier here
  • Private TCP Port(s): 548
  • Private UDP Port(s): leave blank

Apr 19, 2011 2:10 PM in response to fyredog

As for Back to my Mac, I use this for my own personal use, The people I want to access my imac do not have mobile me accounts.



If I can get this to work, I will dedicate my previous iMac as a server using AFP until I decide to tackle the snow leapard server software that I have.


Again, Thanks for your generous help.

Apr 19, 2011 8:47 PM in response to fyredog

Ok, let's give this another shot. I am assuming for the following you will have users that want to access either the Time Capsule's internal or an externally attached HDD. Also, Connection Sharing = Share a public IP address. Note: I have only verified that this works using a single HDD attached to an 802.11n AirPort Extreme Base Station (AEBSn).


  1. Using the AirPort Utility, select the TC. Note the value for IP Address.
  2. Click Manual Setup.
  3. Select the Disks tab, and then, select File Sharing.
  4. Verify the following settings:
    • Enable file sharing: checked
    • Secure Shared Disks: With disk password
    • Guest Access: Not allowed
  5. Click on Advanced, and then, click on the Port Mapping tab.
  6. Click the plus sign ➕ to add a new port mapping.
  7. In the Public UDP Port(s) and TCP Port(s) boxes, type in a 4-digit port number (e.g., 5666) that you choose.
  8. In the Private IP Address box, type the internal IP address of your TC that you noted in step 1.
  9. In the Private UDP Port(s) and TCP Port(s) boxes, type 548, and then, click Continue.
  10. In the Description box, type a descriptive name of your choosing to describe that you are mapping the AFP ports, and then, click Done.
  11. Finally, click on Update to write the setting to the TC and let it restart.


To test, using a remote Mac:

  1. In the Finder, click Go, and then, Connect to Server.
  2. Enter the Public (WAN-side) IP Address of the TC, plus a colon and the port number you choose earlier in the Server address box, and then, click Connect. For example: afp://123.456.789.123:5666
  3. You should be prompted for a username and password. The username can be anything, and the password would be the you like; the password should be the File Sharing Disk Password you created in the AirPort Utility.


The TC's drive should now appear in the Shared section in the Finder's sidebar as a server.

Apr 19, 2011 9:53 PM in response to fyredog

Oh boy, I think I confused you. I apologize for that. Let me start all over again. My goal is to have an outside mac access a mac on my internal network using AFP. My equipment is a 1TB TC with 2 external HD's connected via usb. I do not wish anyone from outside my internal network to access the Internal HD of the TC nor the 2 external HD's of the TC and wish to maintain internal conectivity to these devices. The TC is connected to a cable modem and is the router. All macs on my internal network are connected via airport. I have an imac that I plan to dedicate to this, that is the machine I want the outsider to connect to. I hope this is helpful to solve my goal.

how do i get afp to work through timecapsule

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