Cant access host from container in Windows Containers

I have made a web service, my DB is running in my Local Machine’s SQL Server, My web service is running in a Hyper-V Container, and in the service, I have given the IP of my host machine to access the DB but it isn’t accessing it. Moreover, I am also unable to ping my host machine from within my container. So is there anything that I am missing?