Closed hnashif closed 2 years ago
Hi @hnashif ; thank you for reporting this issue.
The -p
command line option is only for overriding the port when running a Recipe. As a work-around, to override the port when not running a Recipe, specify these command line options as follows:
java -Dquine.webserver.address=localhost -Dquine.webserver.port=8081 -jar quine.jar
Obviously this is a confusing situation, we will improve this in the future.
Finally, here's a reminder to join our Slack community.
https://github.com/thatdot/quine/releases/tag/v1.2.1 includes https://github.com/thatdot/quine/commit/ca04d84556cacf1a41063e36b56fa012e93c6d34 which adds extended support for command-line arguments, including -p
, allowing them to be used with the main Quine application
The default port of 8080 is already in use on my machine and Quine was unable to bind to 8080. Running Quine w/ -h displays -p, --port command line option to override the default port. This was validated by running a recipe as shown below:
However, when Quine is started w/ -p option set to 8081, but w/o a recipe, it ignores the -p arg and defaults to 8080. On my machine, this failed to bind to 8080 as it is in use: