Simple Directions for publishing a Mac Dev Site with MAMP-Pro, a Linksys Router, and a Dynamic DNS domain name from Dyn.com
It can be complicated and frustrating publishing a development site from your computer.
It’s taken me hours to figure it out. I’m not going to waste any more of your time telling you my story. Too many options in too many apps, none of whose support supports the other.
Here’s the procedure, assuming you have all the parts listed above.
First – get your domain from DYN’s list of available dynamic domains.
If you have Dyn Updater installed and running, your account will know your IP address. Assign it to the new domain.
MAMP – Pro
Second – set up your local domain in MAMP-Pro, using the domain name you got from DYN – (simplifies WordPress URL issues later). Never mind alias domains. (This calls for MAMP Pro.) The folder can have any name you want, but use the domain you’re going to use with DYN.
Third – Install WordPress using MAMP-Pro extras. Build your site.
Fourth – In your Linksys Router’s admin, reserve a DHCP address for your machine.
In the Connectivity/Local Network tab, hit the DHCP reservations button and click the checkbox next to your machine. Click “Save.”
Fifth – Set up port forwarding on your Linksys router.
On newer routers with Smart Wifi:
Security/Apps and Gaming tab/ Single Port Forwarding (button)
Application Name – whatever you want. I chose “MAMP.”
External and Internal port – both 80
IP address – enter it, same as your DHCP reservation. Click save.
Don’t use the DYN tab in the router.
Although you could set up DYN in the router and not in MAMP Pro – it’s either/or (I got it working before, but not lately), Port Forwarding is simpler, and the success of this tutorial depends on it. Just remember to turn it off in the router (and/or shut down MAMP) when you’re not showing the site to your client. I use Little Snitch for outbreaks of security paranoia, to monitor traffic in and out of my Mac.
Sixth – Set up DYN in MAMP. Go to the Dynamic DNS tab, enter your dyn.com account login and activate it. Your site should go live.
Here are 2 valuable tutorials: