Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm freelancing somewhere and want to share a local (on my MacBook) site with some LAN users via IP. The network structure, time and technical ability here don't allow me get everyone to add host entries or setup proper DNS..

So.. say I have http://devsite accessible on my own machine, is there a way that I can access this from the LAN via IP like: '' ?

I see that '' works for the default site (where 'mbp' is my machine name) but not sure how to get other sites working?


Added for clarity: the name 'devsite' is added in /private/etc/hosts by me, and the vhost is added to /private/etc/apache2/extra/httpd-vhosts.conf

share|improve this question
up vote 2 down vote accepted

When you turn on Web Sharing from the System Prefs there will be a LAN IP that will point to your local ~/Sites folder. All you would have to do is have those on the LAN point there browsers to http://myLANIP/~username/devsite where devsite is a folder inside of your ~/Sites folder.

share|improve this answer
Ah ok thanks, so the reason it's not working for me like that at the moment is that my sites live in another location. Ok, I'm going to be rebuilding the machine soon so I'll have a re-jig and change the way I work :) - Thanks! – Mere Development Feb 23 '12 at 3:14
Try placing an alias to the folder where your work is into ~/Sites – afragen Feb 23 '12 at 3:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.