Trying to run a rails app with JRuby and have it bind to 0.0.0.0. After
I run the command:
jruby script\server -p 3305
I see that it binds to 127:
TCP 127.0.0.1:3305 0.0.0.0:0 LISTENING
When I start the same app with ruby:
ruby script\server -p 3305
It binds to 0.0.0.0 :
TCP 0.0.0.0:3305 0.0.0.0:0 LISTENING
I tried adding a -b 0.0.0.0 to the Jruby command but it still binds to
127.
Any ideas?
Is this on Windows? This seems to be working for me.
On Wed, Oct 7, 2009 at 12:26 AM, Ikai L. [email protected] wrote:
Is this on Windows? This seems to be working for me.
Here’s what I see on Windows with 1.4.0RC1:
#>jruby script/server
=> Booting Mongrel
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
What I don’t get though is that in browsers I can’t use that URL, the
browser won’t connect, I have to use 127.0.0.1 one, typing it manually
Thanks,
–Vladimir
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Apparently this is a known issue:
http://archive.codehaus.org/lists/org.codehaus.jruby.scm/msg/[email protected]
I just tested with JRuby1.4RC and it binds to 0.0.0.0 with that version.
Ikai L. wrote:
Is this on Windows? This seems to be working for me.
Yes, its windows. When Rails starts up it says its starting on 0.0.0.0
but when you do a netstat you see:
TCP 127.0.0.1:3305 0.0.0.0:0 LISTENING