I want to run rails on a machine with two networks connected such that rails listens on both. For example ruby script/server -b192.168.1.10 -b192.168.254.31 It only binds to the second one. Any ideas? -- Posted via http://www.ruby-forum.com/.
The second argument overrides the first. The default bind port (0.0.0.0) will bind to both IPs. Is that not working for you? - Jason On Jan 4, 2006, at 11:32 PM, Richard wrote:> I want to run rails on a machine with two networks connected such that > rails listens on both. > For example > > ruby script/server -b192.168.1.10 -b192.168.254.31 > > It only binds to the second one. > > Any ideas? > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
Jason Ketterman wrote:> The second argument overrides the first. > > The default bind port (0.0.0.0) will bind to both IPs. Is that not > working for you? > > - JasonThat was it. I had to make a hole in my firewall, and in the process had switched to direct binding while debugging iptables. I''ve switched back to 0.0.0.0 Thanks -- Posted via http://www.ruby-forum.com/.