0

i have created ASP.net WEB API and hosted using OWIN and windows service, i have hosted the service in windows Server 2014 r2 using INSTALLUTILL , The service is running properly.

My problem is when ever i browse the API using Localhost(localhost:51495/api/User/GetAllUsers), i'm able to see the data . But when i'm using the Host Name(HostName:51495/api/User/GetAllUsers) i'm getting error saying . bad host and sometimes Service unavailable .

I know i'm missing something to map host-name with the localhost but not sure how to do it. Please help me with this.

Naveen Kumar
  • 81
  • 2
  • 10

0 Answers0