Redhat 7, unable to curl from inside a container to the host it is running on

I have two containers running inside rancher A,B.

I am able to access A using hostip:port from outside from a browser(host port mapping has been made).

But from within container B, I am unable to curl http://hostip:mappedport

However, I could do curl http://containerA’sIP:port and curl http://containerA’sname:port

I have firewall completely disabled on the host. Firewalld is disabled.

It appears that somehow I need to enable connectivity for container B to access host container:port.

pint hostcontainer works from container B

This is called hairpin NAT and is not currently supported: https://github.com/rancher/rancher/issues/1920