1028 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 500 and 999 users
+1 more
ThemeBlvd says

I’m new to all this networking stuff and was hoping someone could help me out with this…

So, I have MAMP running on my macbook where the sites I’m working on are. Currently from any computer in my house (on my local network) I can view the sites hosted on my macbook by going to an address like this:

http://my-macbook-name.local:8888

This works well for me. I can keep my sites on my laptop and view them from any computer. If I bring my laptop to the coffee shop or whatever, I can still work on my sites the way they’re configured.

I just bought a new PC with Windows 7, turned it on, and connected to my local network. When I go to that above address the server is not found. I can’t access my MAMP sites that way.

However, if I go to my macbook’s IP address like this from my new PC:

http://XX.X.X.X:8888

It works. However, this doesn’t really work for me because if I setup my wordpress sites with this address, then every time I took my macbook outside my house to another network, my IP will change, and then I’d have to reconfigure my wordpress site url in order to work on the site while I’m out.

So, my question is: How can I access my MAMP hosted sites by going to the address that looks like this from my Windows 7 PC (on the same local network)?

http://my-macbook-name.local:8888

Any clues? Thanks in advance :-)

1799 posts
  • Has been a member for 5-6 years
  • Germany
  • Exclusive Author
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
  • Microlancer Beta Tester
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
BroOf says

You could install a dns server on your mac.

Or

did you tried to just put the name of your mac (I only know windows so I don’t know if macs have names) in the adressbar of your browser?

538 posts Themes and Graphics
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
+4 more
Bebel says

You are looking for http://www.dyndns.com/

358 posts
  • Envato Staff
  • Reviewer
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Beta Tester
+4 more
Philo01 Reviewer says
2429 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says
1028 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 500 and 999 users
+1 more
ThemeBlvd says

Mac’s are already setup like this to be accessed on a local network so I don’t think I need to actually do any kind of DNS . Currently I have a mac pro and a laptop with Vista. On both, I can already go to:

http://my-macbook-name.local:8888

And it works. I see the MAMP sites hosted on my macbook. It’s just on the new computer with Windows 7 that it doesn’t work? That’s what I don’t understand.

1028 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Author had a File in an Envato Bundle
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 500 and 999 users
+1 more
ThemeBlvd says

I finally figured it out! From Philo01’s suggestion I did some more research on the topic of editing the hosts file.

I found this tutorial online saying how to edit the “hosts” file on Windows 7:

http://helpdeskgeek.com/windows-7/windows-7-hosts-file/

So, my macbook pro has the name “macbook”. So in order to see my MAMP site over on my new PC, I edited that hosts file and simply added this line:

XX.X.X.X macbook.local

Basically forwarding “macbook.local” in the browser to the IP address of the macbook. Now I can see my WordPress site on my PC by going to macbook.local:8888 in the browser when my laptop is on. Then if I want to go out to the coffee shop or whatever, I can work on my site directly there on the laptop and see the site on my laptop at the exact same address (macbook.local:8888). Thus, home, school, Starbucks, I can edit my site without having to change any WordPress settings. The perfect workflow. Thanks, guys :-)

3117 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Exclusive Author
chrisakelley says
I finally figured it out! From Philo01’s suggestion I did some more research on the topic of editing the hosts file.

I found this tutorial online saying how to edit the “hosts” file on Windows 7:

http://helpdeskgeek.com/windows-7/windows-7-hosts-file/

So, my macbook pro has the name “macbook”. So in order to see my MAMP site over on my new PC, I edited that hosts file and simply added this line:

XX.X.X.X macbook.local

Basically forwarding “macbook.local” in the browser to the IP address of the macbook. Now I can see my WordPress site on my PC by going to macbook.local:8888 in the browser when my laptop is on. Then if I want to go out to the coffee shop or whatever, I can work on my site directly there on the laptop and see the site on my laptop at the exact same address (macbook.local:8888). Thus, home, school, Starbucks, I can edit my site without having to change any WordPress settings. The perfect workflow. Thanks, guys :-)

another solution is to ignore mamp completely and use the default server on OSX it takes some modification to set everything up but I use it with VirtualhostX and VMware but virtual box also works great

EDIT : this article may help its similar to how I have my set up CLICK !

by
by
by
by
by
by