# Cannot connect to mongrel running typo

**URL:** <https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924>\
**Category:** Ruby\
**Created:** [October 4, 2006, 12:06am UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924 "2006-10-04T00:06:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 4, 2006, 12:06am UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/1 "2006-10-04T00:06:57Z")

</div>

I just installed Typo 4 on my Ubuntu box. I run

> > typo install foo  
> > Starting Typo on port 4821

I then try

> > wget [http://127.0.0.1:4821](http://127.0.0.1:4821)

but no connection is made. Same problem in firefox. No connection.

The mongrel log is  
\*\* Starting Mongrel listening at 0.0.0.0:4821  
\*\* Starting Rails with production environment…  
\*\* Rails loaded.  
\*\* Loading any Rails specific GemPlugins  
\*\* Signals ready. TERM =\> stop. USR2 =\> restart. INT =\> stop (no  
restart).  
\*\* Rails signals registered. HUP =\> reload (without restart). It  
might not work well.  
\*\* Mongrel available at 0.0.0.0:4821  
\*\* Writing PID file to  
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt

Strange IP address 0.0.0.0 ??? Is that correct?

typo has started mongrel as

10085 ? Rl 0:01 /usr/local/bin/ruby  
/usr/local/bin/mongrel\_rails start  
/usr/home/brad/projects/ruby/typo/foo -d false -e production -P  
/usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt -p 4821

Does anybody have an idea what is up here?

Regards

Brad

and it

---

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 4, 2006, 12:16am UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/2 "2006-10-04T00:16:57Z")

</div>

On 10/4/06, bradphelan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The mongrel log is  
> /usr/home/brad/projects/ruby/typo/foo/tmp/pid.txt
> 
> Does anybody have an idea what is up here?

just a ‘generic’ hints:

0.0.0.0 means ‘any’ or ‘all’ addresses, i.e. if your box has two  
addresses, mongrel will listen on both

try netstat -an to see whether it really listens on the port

---

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 4, 2006, 8:51am UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/3 "2006-10-04T08:51:43Z")

</div>

> 0.0.0.0 means ‘any’ or ‘all’ addresses, i.e. if your box has two  
> addresses, mongrel will listen on both
> 
> try netstat -an to see whether it really listens on the port

Active Internet connections (servers and established)  
Proto Recv-Q Send-Q Local Address Foreign Address  
State  
tcp 0 0 0.0.0.0:4821 0.0.0.0:\*  
LISTEN  
tcp 0 1 192.168.1.5:55526 127.0.0.1:631  
SYN\_SENT  
tcp 1 1 192.168.1.5:59149 82.211.81.138:80  
LAST\_ACK  
tcp 1 1 192.168.1.5:43522 82.211.81.240:80  
LAST\_ACK  
tcp 0 0 192.168.1.5:32889 63.245.209.21:80  
ESTABLISHED  
tcp 0 0 192.168.1.5:53454 207.7.108.149:993  
ESTABLISHED  
tcp 0 0 192.168.1.5:53457 207.7.108.149:993  
ESTABLISHED  
tcp 0 0 192.168.1.5:44193 64.233.167.147:80  
ESTABLISHED  
tcp 0 0 192.168.1.5:44192 64.233.167.147:80  
ESTABLISHED  
tcp 0 0 192.168.1.5:37849 72.14.217.104:80  
ESTABLISHED  
tcp 0 0 192.168.1.5:37850 72.14.217.104:80  
ESTABLISHED  
tcp 0 1 192.168.1.5:37587 127.0.0.1:4821  
SYN\_SENT  
udp 0 0 0.0.0.0:68 0.0.0.0:\*

raw 0 0 0.0.0.0:1 0.0.0.0:\* 7

So it seems to be listening but neither firefox or wget can make a  
connection ??

---

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 4, 2006, 11:23pm UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/4 "2006-10-04T23:23:23Z")

</div>

On 10/4/06, bradphelan [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> So it seems to be listening but neither firefox or wget can make a  
> connection ??

Right. The output seems fine. I don’t have a clue what could be the  
problem. Some more tips:

1. try running mongrel with specific address: -a 127.0.0.1
2. try using your outer address (-a 192.186.1.5)
3. are you using some kind of firewall that could block the traffic?
4. try using webrick instead of mongrel

---

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 5, 2006, 11:09pm UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/5 "2006-10-05T23:09:53Z")

</div>

Howsabout running ethereal to see if traffic is getting to the IP  
address (firstly).

Markt

---

<div class="post-metadata">

**Author:** ![bradphelan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/aeb1de/32.png) [@bradphelan](https://www.ruby-forum.com/u/bradphelan)\
**Post date:** [October 5, 2006, 10:17pm UTC](https://www.ruby-forum.com/t/cannot-connect-to-mongrel-running-typo/70924/6 "2006-10-05T22:17:41Z")

</div>

Jan S. wrote:

> 1. try using webrick instead of mongrel  
> Tried webbrick and that still doesn’t work. I am puzzled!

Brad
