From b7ccfee8bf304db8273cb25a583ded82c1f8b3ac Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Thu, 3 Mar 2022 00:04:55 -0500 Subject: [PATCH] Create ChangingTheWebServerPort.md --- docs/ChangingTheWebServerPort.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/ChangingTheWebServerPort.md diff --git a/docs/ChangingTheWebServerPort.md b/docs/ChangingTheWebServerPort.md new file mode 100644 index 0000000..cf404b3 --- /dev/null +++ b/docs/ChangingTheWebServerPort.md @@ -0,0 +1,13 @@ +## Changing the Web Server Port. + +If your Pi already has a web server on port 80, you can reconfigure PiPedal to use a different port. After installing PiPedal, run the following command on your Raspberry Pi: + + sudo pipedalconfig --install --port 81 + +You can optionally restrict the addresses on which PiPedal will respond by providing an explicit IP address. For example, to configure PiPedal to only accept connections from the local host: + + sudo pipedalconfig --install --port 127.0.0.1:80 + +To configure PiPedal to only accept connections on the Wi-Fi host access point: + + sudo pipedalconfig --install --port 172.22.1.1:80