1037 posts
  • Affiliate Level 6
  • Author Level 10
  • Collector Level 4
  • Top Monthly Author
+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
  • Affiliate Level 1
  • Author Level 4
  • Beta Tester
  • Collector Level 2
+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?

610 posts Themes and Graphics
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 9
  • Beta Tester
+11 more
Bebel
says

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

366 posts
  • Industrious API Inventor
  • Top Monthly Author
  • Weekly Top Seller
  • Envato Team
+11 more
Philo01
Envato team
says
2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says
1037 posts
  • Affiliate Level 6
  • Author Level 10
  • Collector Level 4
  • Top Monthly Author
+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.

1037 posts
  • Affiliate Level 6
  • Author Level 10
  • Collector Level 4
  • Top Monthly Author
+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
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • 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