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'm working on a Sinatra app so I have a Mongrel instance running at localhost:4567 on my main machine, a Macbook Pro. How can I view the app over my LAN, preferably from an iPhone?

If I enable web sharing I can get to the files in my ~/Sites folder fine but the app doesn't run. If I ammend the :4567 to the IP address Safari can't find the server. If I try just the IP I get the default "It Works!" page. If I add the port then it can't find the server. I'm pretty sure I've set up port forwarding on my router setup page correctly. What am I not doing right?

share|improve this question
up vote 2 down vote accepted

localhost is the loopback address. It's not accessible to anything outside of the computer. You will need to make the Mongrel instance run on an address that is accessible on the LAN.

share|improve this answer
ah, i see. i didn't know to try that. thanks! – joeminkie Dec 1 '09 at 6:22

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.