Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind to 0.0.0.0 instead of 127.0.0.1 #1522

Closed
leebrooks0 opened this issue Dec 14, 2013 · 1 comment
Closed

Bind to 0.0.0.0 instead of 127.0.0.1 #1522

leebrooks0 opened this issue Dec 14, 2013 · 1 comment
Labels

Comments

@leebrooks0
Copy link

I was trying to run my Padrino app from a tablet via a wi-fi network and I could not connect. I asked here http://unix.stackexchange.com/questions/105164/connecting-to-localhost-via-system-ip-address and they said that to bind port 3000 (or any other...) to all IPs you need to use an IP of 0.0.0.0. In my question on the Unix forum I never stated that I was using Thin with Padrino, and Padrino always seems to bind to 127.0.0.1.

a) What is the difference between thin start and padrino start (or passenger start and padrino start etc etc.)?
b) Can I get padrino to bind to 0.0.0.0?

@ujifgc
Copy link
Member

ujifgc commented Dec 15, 2013

a) thin and passenger are full-blown web servers, padrino start is built-in padrino script which loads an app and uses Rack::Server to serve with it.
b) use padrino start -h 0.0.0.0 if you want temporary development run, configure something bigger to run long-term development or production.

@ujifgc ujifgc closed this as completed Dec 15, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants