gzClient wont connect with gzServer

asked 2023-06-05 09:56:18 -0500

I am running two containers, one which hosts the gzserver and the other which runs the gzclient. I am running into issues where the gzclient is not receiving information published by the gzserver. What is the problem with this approach? How do I fix it?

I am running the containers with the following commands:

gzserver - docker run -it --rm -p 11345:11345 --name gzserver gzserver /bin/bash - After start up I am running the gzserver inside the container

gzclient - docker run -it --rm -p 8080:8080 --name gzclient gzweb:1.0 /bin/bash - After start up, I am running the client with "npm start"

If I run the gzserver in the container, and boot the client on my VM (outside of the client container and on my host machine) the client loads successfully with the correct contents; however, if I load the client in its container, it is stuck listening for the server.

I am assuming the problem is not with the server, as I am able to connect fine on my host machine, but rather a connectivity issue between the two docker containers. Any help would be appreciated.

image description

edit retag flag offensive close merge delete