Mian Zhang
2008-Jun-19 19:01 UTC
Why can''t I access Webrick web server from other computers?
Hi everyone, I have a rails project running on Ubuntu. When I ran it on localhost http://localhost:3000, it worked perfectly. But when I tried to access from other computers in the same network by either http://hostname:3000 or http://[ipaddress]:3000, I got a "Internet Explorer cannot display the webpage" error. I double checked my ubuntu with iptables, no rules are defined: iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Did I miss some configurations? Any ideas? Thanks in advance. xianese -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
julian
2008-Jun-19 19:03 UTC
Re: Why can''t I access Webrick web server from other computers?
What does it say when ruby script/server boots up? It should be binding to either your IP address or to 0.0.0.0 (all IP addresses). On Jun 19, 3:01 pm, Mian Zhang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi everyone, > > I have a rails project running on Ubuntu. When I ran it on localhosthttp://localhost:3000, it worked perfectly. But when I tried to access > from other computers in the same network by eitherhttp://hostname:3000 > orhttp://[ipaddress]:3000, I got a "Internet Explorer cannot display > the webpage" error. > > I double checked my ubuntu with iptables, no rules are defined: > > iptables -L > > Chain INPUT (policy ACCEPT) > target prot opt source destination > Chain FORWARD (policy ACCEPT) > target prot opt source destination > Chain OUTPUT (policy ACCEPT) > target prot opt source destination > > Did I miss some configurations? Any ideas? > > Thanks in advance. > > xianese > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Pavankumar Kulkarni
2008-Jun-19 19:13 UTC
Re: Why can''t I access Webrick web server from other computers?
Hey, You should start webrick or mongrel with ./script/server -b <IP_ADDRESS> -p <PORT> [-e production] Then you will be able to access it from other machines on the network. Cheers, Pavan On Thu, Jun 19, 2008 at 12:03 PM, julian <thefool808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > What does it say when ruby script/server boots up? It should be > binding to either your IP address or to 0.0.0.0 (all IP addresses). > > On Jun 19, 3:01 pm, Mian Zhang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: >> Hi everyone, >> >> I have a rails project running on Ubuntu. When I ran it on localhosthttp://localhost:3000, it worked perfectly. But when I tried to access >> from other computers in the same network by eitherhttp://hostname:3000 >> orhttp://[ipaddress]:3000, I got a "Internet Explorer cannot display >> the webpage" error. >> >> I double checked my ubuntu with iptables, no rules are defined: >> >> iptables -L >> >> Chain INPUT (policy ACCEPT) >> target prot opt source destination >> Chain FORWARD (policy ACCEPT) >> target prot opt source destination >> Chain OUTPUT (policy ACCEPT) >> target prot opt source destination >> >> Did I miss some configurations? Any ideas? >> >> Thanks in advance. >> >> xianese >> -- >> Posted viahttp://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mian Zhang
2008-Jun-19 19:35 UTC
Re: Why can''t I access Webrick web server from other computers?
Pavankumar Kulkarni wrote:> Hey, > You should start webrick or mongrel with > ./script/server -b <IP_ADDRESS> -p <PORT> [-e production] > > Then you will be able to access it from other machines on the network. > > Cheers, > PavanPavan and Julian, it works!!! Thanks a lot. Mian -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
nitsujweidmann-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Jun-20 23:33 UTC
Re: Why can''t I access Webrick web server from other computers?
To get this working in internet explorer in development, you have to prepend the address with HTTP:// when using a port (:3000), without http:// IE will fail to load the page On Jun 19, 1:35 pm, Mian Zhang <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Pavankumar Kulkarni wrote: > > Hey, > > You should start webrick or mongrel with > > ./script/server -b <IP_ADDRESS> -p <PORT> [-e production] > > > Then you will be able to access it from other machines on the network. > > > Cheers, > > Pavan > > Pavan and Julian, > > it works!!! > > Thanks a lot. > > Mian > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Apparently Analagous Threads
- [LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
- [LLVMdev] LLVM JIT on a Baremetal x86 Machine !!!
- [LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
- [LLVMdev] Is it possible to inline Functions without using LLVM JIT Framework?
- machine add error to samba PDC