Search code examples
ruby-on-railsmacosforeman

how to make foreman port accessible from outside in mac


I have a rails application that use foreman to serve on localhost:3001. I turned off the whole firewall but still it's not accessible from out side. How can I share this port to the network?


Solution

  • You cannot access the development mode rails server from another computer(remote access).You need to bind the server to the ip like this:

    rails s -b 111.11.11.111 // 111.11.11.111 is an example for ip address