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

**URL:** <https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399>\
**Category:** Rails\
**Created:** [July 14, 2006, 2:09pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399 "2006-07-14T14:09:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 14, 2006, 2:09pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/1 "2006-07-14T14:09:18Z")

</div>

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 ☹

- 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 ☹

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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 14, 2006, 2:35pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/2 "2006-07-14T14:35:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 14, 2006, 4:54pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/3 "2006-07-14T16:54:43Z")

</div>

1. If you’re using IE, are you typing [http://localhost:3000](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 ☹
> 
> - 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 ☹
> 
> 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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 14, 2006, 8:06pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/4 "2006-07-14T20:06:22Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 14, 2006, 11:36pm UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/5 "2006-07-14T23:36:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [July 15, 2006, 1:02am UTC](https://www.ruby-forum.com/t/browser-connection-issue-to-http-localhost-3000-on-xp/98399/6 "2006-07-15T01:02:33Z")

</div>

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

BTW: Does this make any sense to anyone?

Reference:  
[http://networksecurityarchive.org/html/NTBugtraq/2004-08/msg00041.html](http://networksecurityarchive.org/html/NTBugtraq/2004-08/msg00041.html)

cheers
