Forum Discussion
chanev
Jan 19, 2021Copper Contributor
docker - Azure Container Instance - how to make my container accesable and recognized from outside?
I have windows container which should access to external VM database (that is not in container, lets say VM1) so I would define for them l2bridge network driver in order to use the same Virtua...
avalynn1133
Dec 05, 2025Copper Contributor
Hi, you are on the right track. When the container gets a new IP each time, you should not depend on it. The easiest way is to make sure the container is in the same network and that your DNS can resolve its name.
You should also check that the port you want (9000) is open in the container and on the Windows firewall. Sometimes Windows blocks traffic by default, so you may need to allow that port.
If the other VM is in the same virtual network and uses the same DNS, it should see the container by its hostname. Just make sure the network rules and firewall rules allow the traffic.
Hope this helps and works for you!