Multiple Raspberry pis on single ip

hello, i have 2 raspberry pi 4s that i want host webservers on, but cloudflare doesnt seem to work with ip:port.

the only thing i can think of would be to setup the ip:port settings but as they are non existent i cannot get 2 webservers running in my house through the raspberry pis.

my main question is, just how would i do this.

thanks in advance

You need to configure a port forwarding on your router.

RasPi 1: Port 80/443
RasPi 2: Port 8080/8443

How ever, for the second Pi you’d always need to add the Port to the URL.

To avoid this, you could configure nginx as a reverse proxy on one of them, or use a 3rd Pi for it

The following ports are proxied by Cloudflare:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.