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: At the Play console, instead of just typing "run" to run the server, type "run 8080" to run the server on port 8080. Here's the command at the Play console prompt, and the output:

[forms] $ run 8080

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

[info] play - Listening for HTTP on port 8080...

(Server started, use Ctrl+D to stop and go back to the console...)

 

Add new comment

The content of this field is kept private and will not be shown publicly.

Anonymous format

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul type> <ol start type> <li> <pre>
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.