So I am using subdomains to access my containers. It seems to be working.
However, on the webpage inside the container, I have an Iframe. I set the “src” of
the iframe to LPC1.lxd:3000/Embed/0xXXXXXXXXXXXXXXXXXXXXXX
Fidler is giving me this:
[Fiddler] The connection to ‘lpc1.lxd’ failed.
Error: TimedOut (0x274c).
System.Net.Sockets.SocketException A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 198.105.254.228:3000
And within the container I ping it:
root@LPC1:/var/www/html# ping LPC1.lxd
PING LPC1.lxd (10.106.37.94) 56(84) bytes of data.
As you can see, the IP’s are obviously different between the Fiddler output and the pin output?
Any ideas why?
What do you mean by I am using subdomains to access my containers?
Is that DNS subdomains or something else? How did you create them?
One IP is a public IPv4 address, the other is a private IP address for LXD. There must be some translation taking place, which will make sense if you can describe how you setup the network.
In any case, if lpc1.lxd:3000 is not responding, you would need to connect with, for example, nc.
That service (Fiddler?), where is it located? On the host or in the LPC1 container?
Because if it is in the container listening to port 3000, you would need to expose that port using HAProxy, so that it is accessible from the Internet.
You would need a new entry in HAproxy for port 3000, either for a TCP port or a HTTP port.