how to change the port in rails code example Example: start rails server on different port rails s -p 5000 #or you can set your own port (> 1024)