Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 website running on my mac on mamp at localhost:8888. On another mac on my wifi I can view the website, using


(where X's are my computer's ip address). Except, I can view the html, but not any of the images as it is looking for them at


rather than


Is there a way to write http://localhost:8888 and actually be directed to http://192.168.X.X:8888 ? Thanks

share|improve this question

closed as not a real question by Michael Hampton, Ward, Tom O'Connor, mdpc, kce Jan 24 '13 at 5:44

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 0 down vote accepted

edit /etc/hosts and change the line   localhost


192.168.X.X localhost

That said, this is a horrible idea and will likely break things, but it can be done.

share|improve this answer

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