Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

http://192.168.X.X:8888

(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

http://192.168.X.X:8888/images

rather than

http://localhost:8888/images

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.

add comment

1 Answer

up vote 0 down vote accepted

edit /etc/hosts and change the line

127.0.0.1   localhost

to

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
add comment

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