API in Azure with Docker on WSL

Good afternoon everyone, I hope you are well.

I started using docker a few months ago, if the topic is repeated, I apologize.

I created an api to perform some automations with playwright on an Azure server and I’m running Docker inside WSL Ubuntu and possibly just port 5001 to work on. In the dockerfile I exposed port 5001, I can access it without problems within my localhost but when I try to connect from a client that is outside the server, a TimeOut is returned. I’m in a corporate environment and I need to adapt some firewall rules, with all my ignorance, would I need to release the IP that is running the container? Why do we use Azure’s public IP to access the server.

If anyone can give me some light, I’m a little lost.