I have a Vagrant VM with Rails installed with a sample app. The VM is configured to forward the port 3000 (of Rails Webrick server) to my host 3000 port.
co
To run on a specific port :
rails server -b 0.0.0.0 -p 8520