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 have a webserver running on a MBA at port 4431 and I want to access through my local network.

But web sharing uses port 80 by default and I can't access to my_mba_ip:4431

Can I add ports to web sharing? I found this old, old post (Changing the OS X Web Server Port) where seems the solution to my problem, but I don't know how to do that in Lion :(

share|improve this question

The location of the httpd.conf in lion is the following:


And you will search for the line to change that has the following:

Listen 80

The rest of that document you linked should work.

I would however recommend using MAMP for much better control of apache and mysql.


share|improve this answer

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.