Why can’t my Hyper-V container connect to SQL Server on the host machine.?

My web service runs in a Hyper-V container, while SQL Server is running on my local machine. I’m using my host machine’s IP to connect to the database, but the connection fails. I also can’t ping the host from inside the container. What could I be missing??

Have you tried to access the host database using host.docker.internal as hostname?
See: Explore networking how-tos on Docker Desktop | Docker Docs