I have a local webserver running on my machine (Mavericks). How can others on my network view the page that I'm hosting?

  • 1
    Please add the webserver (apache?) and its config to your question. – klanomath Feb 13 '15 at 18:41

Go into Terminal and run hostname. If your web server is running on a non-standard port (you'd access it by, for example, localhost:8000), you'll need to use that port when connecting to it, but otherwise you should be able to just type in e.g. myhostname.local.

If this works on your computer but not another one on the same network, it means your network is set up to prohibit connections like the one you're looking for, and you'll have to look at your router for a way to disable it.


The easiest method is to find the IP address assigned to your computer by your local network. This is found in the Network section of System Preferences. Other people can access your local webserver by typing that IP address into their browser.

  • IP doesn't seem to be doing it. :( – Aaron Benjamin Feb 13 '15 at 18:39
  • Are you running the server from the /Library/WebServer directory or from somewhere else? – lapacheco Feb 13 '15 at 18:50
  • i switched the directory to my Sites folder. – Aaron Benjamin Feb 13 '15 at 19:06
  • I believe that this will work. youripaddresshere/~username – lapacheco Feb 13 '15 at 19:09
  • nada with that either. – Aaron Benjamin Feb 13 '15 at 19:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .