Creating server at port 4000

How can I create a new server at port 4000 as the server is automatically created at port 3000.

The server can be run on a different port using the -p option so running rails s -p 4000 will do the trick.

4 Likes