Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails - Running rails server on a public IP [duplicate]

Is it possible to perform a

rails server -b my.public.ip.address -p 8000

running this code obviously doesn't work. So I am wondering if there is a way to around this?

like image 548
Bad Hombre Avatar asked Sep 12 '25 18:09

Bad Hombre


1 Answers

You can use rails server -b 0.0.0.0 -p 8000, and review the following things:

  • You use the port 8000 in your browser, Example http://<your-ip>:8000
  • You or you ISP don't have a firewall.
like image 159
Sergio Rivas Avatar answered Sep 14 '25 12:09

Sergio Rivas