How to access a port on the host machine when running docker container on MacOS with –network=host?

I have set up a couple of containers that interact with each other. The main application container runs on –network = host because it queries several mySQL containers running on different ports exposed on the host network.

I am trying to hit the application on the host but get an error
curl: (7) Failed to connect to 0.0.0.0 port 36081: Connection refused
I am working on Docker installed on MacOS.

I have read several questions that indicate that docker on MacOS runs on a VM. But what is the workaround to access the application from the host? Any way to get the IP of the said VM?

Source: StackOverflow