Browser connection issue to http://localhost:3000/ on XP?

Hi,

I think I have network issue on my XP PC here trying to run up
InstantRails and using it. I create an application and run up the
server “ruby scripts/server” and it runs up, but then when I try to
browse to it the browser just sits and spins and doesn’t connect :frowning:

  • I’ve tried: localhost:3000, 127.0.0.0:3000, 127.0.0.1:3000 + the IP
    address that “ipconfig” reports but no luck.

  • I did have ZoneAlarm installed but I deinstalled this and restarted.

  • I did a month ago come across this problem and someone had posted a
    windows command prompt line that did something like clear the XP network
    connections or something, however now I can’t find this again :frowning:

Can anyone help / give pointers re getting my browser to be able to
connect to webbrick on XP? (sounds stupid I know, but I’m stumped)

Thanks in advance

first check your hosts file. You should be able to modify this from
InstantRails. It might be goofy. There should be a localhost entry in
that
file.

If that looks okay, you could try

ipconfig /flushdns

to clear your DNS cache. Probably won’t help in this case though.

Lastly, ensure that the Windows XP Firewall isn’t blocking you. Turn it
off
for a second (stop the service or use net stop sharedaccess and
then
test your app.

  1. If you’re using IE, are you typing http://localhost:3000 or simply
    localhost:3000? Internet Explorer needs the “http://” portion of the URL
    when a port number is specified.

  2. Check your hosts file to make sure “localhost” isn’t redirecting
    someplace else. This is unlikely if 127.0.0.1 also isn’t responding.

Greg H. wrote:

Hi,

I think I have network issue on my XP PC here trying to run up
InstantRails and using it. I create an application and run up the
server “ruby scripts/server” and it runs up, but then when I try to
browse to it the browser just sits and spins and doesn’t connect :frowning:

  • I’ve tried: localhost:3000, 127.0.0.0:3000, 127.0.0.1:3000 + the IP
    address that “ipconfig” reports but no luck.

  • I did have ZoneAlarm installed but I deinstalled this and restarted.

  • I did a month ago come across this problem and someone had posted a
    windows command prompt line that did something like clear the XP network
    connections or something, however now I can’t find this again :frowning:

Can anyone help / give pointers re getting my browser to be able to
connect to webbrick on XP? (sounds stupid I know, but I’m stumped)

Thanks in advance

thanks, but I think none of these help - can anyone shed any light on
this one? Is there another network level diagnostic or reset I can run
to see what’s going on between the browser and the webrick server? OS
again is Windows XP.

[1] hosts file is good
127.0.0.1 localhost
127.0.0.1 www.mycookbook.com

[2] ipconfig /flushdns => didn’t help - this wasn’t the command I had
found previously that made things work I don’t think (i.e. the one which
I now can’t find on the net)

[3] Windows XP firewall is off, and I’ve deinstalled zonealarm

[4] Also if this helps here is an netstat output - you can see that the
browser does seemed to have triggered a TCP connection to the laptop I
guess (?)

C:\Gregs\INSTAN~1\rails_apps>netstat
Active Connections
Proto Local Address Foreign Address State
TCP FREDS_LAPTOP:1180 localhost:1181 ESTABLISHED
TCP FREDS_LAPTOP:1181 localhost:1180 ESTABLISHED
TCP FREDS_LAPTOP:1365 localhost:3000 ESTABLISHED
TCP FREDS_LAPTOP:3000 localhost:1365 ESTABLISHED

===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface
Metric
0.0.0.0 0.0.0.0 192.168.0.2 192.168.0.101
25
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1
1
192.168.0.0 255.255.255.0 192.168.0.101 192.168.0.101
25
192.168.0.101 255.255.255.255 127.0.0.1 127.0.0.1
25
192.168.0.255 255.255.255.255 192.168.0.101 192.168.0.101
25
224.0.0.0 240.0.0.0 192.168.0.101 192.168.0.101
25
255.255.255.255 255.255.255.255 192.168.0.101 192.168.0.101
1
255.255.255.255 255.255.255.255 192.168.0.101 2
1
255.255.255.255 255.255.255.255 192.168.0.101 4
1
Default Gateway: 192.168.0.2

thanks again

PS. I do run CyberSitter (content filtering) - but I have tried going
into SUSPEND mode on this too.

Update - Got things working by using “netsh winsock reset” :slight_smile:

BTW: Does this make any sense to anyone?

Reference:
http://networksecurityarchive.org/html/NTBugtraq/2004-08/msg00041.html

cheers