1035 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 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 referred 1+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+4 more
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?

609 posts Themes and Graphics
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+11 more
Bebel
says

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

366 posts
  • Created a helpful tool/app using the Envato API
  • Became a Top 20 Author of the Month
  • Had an item that became a weekly top seller
  • Member of the Envato Team
+11 more
Philo01
Envato team
says
2468 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact
says
1035 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 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.

1035 posts
  • Has referred 500+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Became a Top 20 Author of the Month
+8 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 :-)

3439 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Achieved the monthly Community Superstar Award
  • Located in United States
+2 more
organicbee
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