Skip to content

Commit 9f44324

Browse files
authored
Merge pull request gcgarner#145 from Paraphraser/20201008-portainerce-doc-publicip
Docs updates - Portainer-ce - explain how to set Public IP
2 parents 513080c + 37ed0d2 commit 9f44324

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/Containers/Portainer-ce.md

+28
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,34 @@ As soon as you are happy that *Portainer CE* meets your needs, you can dispense
141141
$ sudo rm -rf ./volumes/portainer
142142
```
143143

144+
## Setting the Public IP address for your end-point
145+
146+
If you click on a "Published Port" in the "Containers" list, your browser may return an error saying something like "can't connect to server" associated with an IP address of "0.0.0.0".
147+
148+
To fix that problem, proceed as shown below:
149+
150+
![Set Public IP address](./images/portainer-ce-set-public-ip.png)
151+
152+
1. Click "Endpoints" in the left hand panel.
153+
2. Click the name "local" in the list of Endpoints.
154+
3. Click in the "Public IP" field. Enter one of the following:
155+
- The multicast DNS (MDNS) name of your Raspberry Pi (eg `iot-hub.local`)
156+
- The fully-qualified domain name (FQDN) of your Raspberry Pi (eg `iot-hub.mydomain.com`)
157+
- The IP address of your Raspberry Pi (eg `192.168.1.10`)
158+
4. Click "Update endpoint".
159+
160+
> To remove the Public IP address, repeat the above steps but clear the "Public IP" field in step 3.
161+
162+
The reason why you have to tell *Portainer CE* which Public IP address to use is because an instance of *Portainer CE* does not necessarily have to be running on the **same** Raspberry Pi as the Docker containers it is managing.
163+
164+
Keep in mind that clicking on a "Published Port" does not guarantee that your browser can open a connection. For example:
165+
166+
* Port 1883 for Mosquitto expects MQTT packets. It will not respond to HTTP, so any attempt will fail.
167+
* Port 8089 for PiHole will respond to HTTP but PiHole may reject or mis-handle your attempt.
168+
* Port 1880 for NodeRed will respond normally.
169+
170+
> All things considered, you will get more consistent behaviour if you simply bookmark the URLs you want to use for your IOTstack services.
171+
144172
## If you forget your password
145173

146174
If you forget the password you created for *Portainer CE*, you can recover by doing the following:
Loading

0 commit comments

Comments
 (0)