views:

2209

answers:

4

I am trying to learn Ruby on Rails, I have followed the instructions from this page to get rails installed on my PC.

I am also trying to follow this webcast to try and learn the language and framework. Everything is working so far, apart from the fact that I cannot access

http://localhost:3000
http://0.0.0.0:3000
http://127.0.0.1:3000, or
http://<actual IP address>:3000

locally. If I try the from another PC on my network then it works great. I have tried in Chrome, Firefox and IE7 but none work.

Has anyone else had this problem?

EDIT: Typical!! It's started working now. I have no idea why, I am typing the exact same address in to the address bar and it now works. But only if I use http://127.0.0.1:3000, localhost doesn't work. I do run IIS ASP.NET/ASP websites on this machine, and they work fine with localhost.

EDIT 2: If I trying pinging localhost it actually says

Reply from ::1: time<1ms

0.0.0.0 yields...

PING: transmit failed, error code 1214

only 127.0.0.1 seems to work. I did have IPv6 turned on, so I've disabled that and will try again tomorrow to see if a reboot helps.

A: 

Are you possibly using a proxy but haven't listed localhost as proxy exception?

bluebrother
i'm not using a proxy for the local network, or any other network for that matter.
Antony Scott
A: 

You may not have the proper ports open. You can configure this with IIS.

Lucas McCoy
A: 

Have you tried disabling your firewall? They can cause pesky problems at times.

Jason Baker
I have my firewall turned off already
Antony Scott
+1  A: 

Can you telnet to the port? Try:

telnet localhost 3000

That should tell you if the ports unavailable at the TCP level, or whether something's going on at the HTTP level.

Ping might not work if ICMP is disabled, which could be completely unrelated to your issue.

Also, try looking in your hosts file for any redirections:

c:\Windows\System32\drivers\etc\hosts
Drew Noakes
I checked my hosts file and had 2 entries in there for localhost, one for 127.0.0.1 and another for ::1. I commented out the latter and now IE and firefox work with localhost:3000. Many thanks.
Antony Scott
Great stuff. Glad to help.
Drew Noakes