'WEBAPI not working when i add server ip address instead of name?

I have created WEBAPI application using VS2017 and deployed into IIS.

After replace my server ip address instead of msweb102 like below URL, i am getting error.

Please help me , if anyone knows the solution. Thanks in Advance.



Solution 1:[1]

not 100% sure but it should work:

Open the properties from your web.api project and in the Debug tab replace "localhost" with your IP.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andre