Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

add host option to the startup of rack server #24

Open
lustremedia opened this issue Jan 13, 2016 · 0 comments
Open

add host option to the startup of rack server #24

lustremedia opened this issue Jan 13, 2016 · 0 comments

Comments

@lustremedia
Copy link

I am working on a VM and I wanted to access iye from main main machine. I usually NAT my webapplications to a port on the mother ship. However Rack nowadays only binds to 127.0.0.1 instead of 0.0.0.0 thus it is not available to the outside.

I monkeypatched app.rb to look like that:
Rack::Server.start :app => Web, :Host => '0.0.0.0', :Port => 5050
to get it working

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant