PDA

View Full Version : I'm stuck: Can't display page


calande
December 26th, 2005, 09:27 PM
I am following this tutorial:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2

I'm stuck here:

Run the command: ruby script\server to start the server.
Now open your browser and browse to http://127.0.0.1:3000/

I'm stuck because when I type http://127.0.0.1:3000/ in my browser, it
takes forever to open, and after several minutes it times out. I have
added the 3000 port to my exception list (tcp & udp) but with no luck.

The Webricks server is launched normally and doesn't report any error.

Any idea?
Thanks,

rob
December 27th, 2005, 03:15 PM
What OS are you running?

calande
December 27th, 2005, 07:35 PM
Windows XP Pro SP2

rob
December 29th, 2005, 04:41 AM
Try these things:

Disable the Windows Firewall and try, if it doesn't work, put it back up
Check your c:\windows\system32\drivers\etc\hosts to make sure there's an entry "localhost" mapped to 127.0.0.1 (and not anything else)
Use "ping localhost" on the command line to make sure it goes to 127.0.0.1
Make sure no other application has port 3000 open. You can do this with netstat -b and look for TCP 3000
On the command line, with Webrick running, type "telnet localhost 3000" and see if you get a response.