Relying on the container ip is typicaly a sign that you try to do something that is supposed to be solved in a different way. You already publish port 5000, you will want to use the host ip, instead of the container ip.
2 Likes