You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Containers/Portainer-ce.md
+28
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,34 @@ As soon as you are happy that *Portainer CE* meets your needs, you can dispense
141
141
$ sudo rm -rf ./volumes/portainer
142
142
```
143
143
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
+

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
+
144
172
## If you forget your password
145
173
146
174
If you forget the password you created for *Portainer CE*, you can recover by doing the following:
0 commit comments