January 29, 2014 at 2:50
I am trying to run a server with sinatra in a mac running osx 10.9 which connects with localhost but can not access the server with the ip address nor from other computers. I have already checked and have no firewalls and i am executing the server with ruby filename.rb -o 0.0.0.0 and -env production and even setting the bind on the rb file as well but it still doesn't allow access. Any idea on how to allow access to the server? Thanks in advance.
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0.0.0.0 is not an IP address, it’s a placeholder that means “on all interfaces/IP addresses” (including 127.0.0.1).Konstantin
January 29, 2014 at 8:53
By default Sinatra runs on 0.0.0.0:4567 (you must type the port number, because your browser will try to connect on 80 and Sinatra runs on 4567 by default).
Like some others Ruby web servers, the default IP address associated to your app is 0.0.0.0, so you should be able to access it from any machine on your local network.
January 29, 2014 at 2:50I am trying to run a server with sinatra in a mac running osx 10.9 which connects with localhost but can not access the server with the ip address nor from other computers. I have already checked and have no firewalls and i am executing the server with ruby filename.rb -o 0.0.0.0 and -env production and even setting the bind on the rb file as well but it still doesn't allow access. Any idea on how to allow access to the server? Thanks in advance.--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Are you using the local IP address of your machine?
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "sinatrarb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sinatrarb+...@googlegroups.com.