Issue in connecting client container (reside on VM) to server container ( reside on Openstack VM)

I have the following scenario, I have two file client and server file which is containerised using docker containers. Client container is residing on a VM using a virtual box (network set using NAT and host-only adapter) and server container is residing on OpenStack VM.
The IP address of the server is and the VM machine IP address is enp0s8:
I am running the docker container client as

docker run --rm -it -p client bash

and running server docker container as

docker run --rm -it -p 5555:5555 server bash 

also tried with the IP, but when I used ip I retrieve cannot bind address

docker run --rm -it -p server bash

context = zmq.Context()
#Socket to talk to server
socket = context.socket( zmq.REQ )
socket.connect( "tcp://" )
name = "Max"
while True:
  message = input( "Message: " )
  socket.send_pyobj( {1: [name, message]} )

context = zmq.Context()
socket = context.socket(zmq.REP)
while True:
   #Wait for next request from client
   message = socket.recv_pyobj()
   print("%s: %s" % (message.get(1)[0], message.get(1)[1]))

I am able to access OpenStack VM by ssh from my VM using ssh -J proxy-server OpenStack VM.
for instance
ssh -J [email protected] [email protected]

My server is unable to retrieve the data from the client. Thanks, help is highly appreciated helping me in sorting out this issue.

Source: Docker Questions