Running the Play Framework on a different port than the default port (9000)

Play FAQ: How do I run the Play Framework web server on a different port than the default port (9000)?

Solution: With Play 2.8.x, use this sbt command from your operating system command line:

$ sbt "run 8080"

Or use this command from inside the sbt shell:

[play01] $ run 8080

In both cases you’ll see output like this:

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0:0:0:0:0:0:0:0:8080

(Server started, use Enter to stop and go back to the console...)