Connecting to ASP.Net WebAPI server from an application built on different device

Hello.
I have created a WebAPI in a ASP.Net which is a different solution from the unity project solution. In unity editor, I have connected both of them using the server url which is a localhost and it ran successfully.

Now, my next step is to access that webapi of the application from a mobile device(iOS device I’m currently using) and for the url I have used the device ip address instead of the word localhost but there is an error stating that it cannot connect with the destination host.

I am able to find any relevant videos regarding this or any proper information. A little guide would be helpful but couldn’t found any.
Please help me!! :pleading_face: :pleading_face: