GreenFrogSB / LMDS

LMDS - Linux Media Delivery System
https://greenfrognest.com
GNU General Public License v3.0
214 stars 45 forks source link

Can't connect servers on localhost or 127.0.0.1 #6

Closed csimpi closed 3 years ago

csimpi commented 3 years ago

Hi, thank you for this awesome script, I love it :) I've successfully installed everything on my raspberry-pi, I can access the webUIs of the different services, but I can't connect them with using localhost. Most of them works using the device's network IP address, but that's not the desired way.

GreenFrogSB commented 3 years ago

Hi Peter, While using Docker you won't be able to interconnect containers with localhost or loopback IP, this will never work in Docker. Think of docker container as a separate OS - kind of, it has a loopback to itself but not to other containers. You have to use host IP (raspberry Pi IP) or containers names if containers are nated in one single network overlay. For ease of use, always use host IP and a port while connecting containers together, every single container should be communicated with the other this way. Regards GreenFrog

On Sun, Feb 21, 2021 at 12:49 AM Peter notifications@github.com wrote:

Hi, thank you for this awesome script, I love it :) I've successfully installed everything on my raspberry-pi, I can access the webUIs of the different services, but I can't connect them with using localhost. Most of them works using the device's network IP address, but that's not the desired way.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GreenFrogSB/LMDS/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARFVEPTMVZCP7JPIU7B4T5DTABKCPANCNFSM4X6NJIIA .

csimpi commented 3 years ago

@GreenFrogSB Thank you for your answer. In the meantime, I've realized this. But this is not the desired way to connect the different servers IMHO. I'm going to add static IP's to the containers and use those IPs to connect them.