Different Device, Same IP with Nginx

AI-generated summary

In a discussion titled “Different Device, Same IP with Nginx” under the Installation category, bloodshot_pico asks whether special configuration is needed when installing Discourse on a separate device (a second Raspberry Pi 4) that shares the same public IP as another device running Nginx. They wonder if different ports must be opened due to the shared IP. pfaffman asks for clarification on the setup and suggests reviewing Running other websites on the same machine as Discourse. bloodshot_pico clarifies they are not on the same device, but two separate Raspberry Pis, and mentions a corrupted SD card delaying progress. Falco advises that if following the Discourse on a residential internet with Cloudflare Tunnel guide, sharing the same IP is not an issue. bloodshot_pico admits they missed this information because the blog they found didn’t mention it, and they hadn’t yet reached that stage due to installation issues. Falco notes that the blog actually links to the relevant article, adding a lighthearted emoji. The thread highlights the importance of using Cloudflare Tunnels for home setups and clarifies that same-IP setups across different devices are manageable with proper configuration.

Am I supposed to do anything special when installing Discourse on a different device compared to Nginx if they’re sharing the same IP?

Am I supposed to open different ports for them due to them sharing the same IP, might be a stupid question but I’m not 100% with networking and it doesn’t hurt to ask.

Thanks in advance,
~Blood

Are you doing a standard install or something else? It sounds like something else but you don’t give enough detail to guess what you’re trying to do. You might want to see Running other websites on the same machine as Discourse

I’m not running it on the same device, just the same IP, I have two raspberry pi 4 model B’s. One has Nginx with my sites on it and the other I’m trying to install Discourse on. I’m having to wait until tomorrow now due to my SD Card being corrupt.

~Blood

If you are following our Raspberry Pi guide with Cloudflare Tunnels Discourse on a residential internet with Cloudflare Tunnel it should not matter that both sites are on the same IP.

Yeah I didn’t know this was a thing due to me just finding the Blog that didn’t mention any of this. I was having trouble installing this via the new SD Card so I didn’t get this far sadly.

~Blood

The blog links to that article :sweat_smile: