From 7a1eafe855070028d2b4eb723a8ea4f6902975e5 Mon Sep 17 00:00:00 2001 From: zazarpro <233330815+zazarpro@users.noreply.github.com> Date: Wed, 11 Mar 2026 23:46:21 +0000 Subject: [PATCH 1/2] Bind to localhost --- start.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index eedbf71..aa154be 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Change these if you want to different settings for the server +node_host=127.0.0.1 +node_port=3000 + # Setup the path to include local node PATH=$PWD/node/bin:$PATH @@ -98,6 +102,6 @@ fi info_message "Starting Peacock" cd Peacock -PORT=3000 node chunk0.js +PORT=$node_port HOST=$node_host node chunk0.js trap popd EXIT From 7e38ab37a037585151bbf11a315e66c1c624b99d Mon Sep 17 00:00:00 2001 From: zazarpro <233330815+zazarpro@users.noreply.github.com> Date: Thu, 12 Mar 2026 00:00:50 +0000 Subject: [PATCH 2/2] Slight change in readme Change 0.0.0.0:3000 -> 127.0.0.1:3000 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7208e20..c6bee12 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ These setup instructions wrap around the existing code from Peacock, and to simp ## ./node/bin/node: No such file or directory This indicates there was some issue downloading NodeJS. This can be fixed yourself by either installing node yourself through your package manager of choice or by downloading the zip and moving it to where `start.sh` lives and rename the folder to `node` (such that `node/bin/node` should return), but this may also indicate something worth filing an issue for. -## [Error] Failed to use the server on 0.0.0.0:3000! +## [Error] Failed to use the server on 127.0.0.1:3000! As the subsequent lines suggest, this error means that Peacock is already running somewhere else. `pkill node` should kill everything, but you should first verify with `ps aux | grep node` that the only thing you'll kill is the Peacock process (you should have output similar to the below) ```