Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web API work with Localhost but not with Server name
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Troubleshooting
Title:
Web API work with Localhost but not with Server name
Miscellaneous
Thread ID:
01674527
Message ID:
01674527
Views:
43
UPDATE: Problem resolved.

Hi,

I am moving a Web API site from Server 2008 to Server 2016. I test the site using localhost and it works.
But when I replace the localhost with the server name, I get "Page cannot be displayed". Here are the URLs:

This shows the Web API version in the browser. And it works with the localhost
http://localhost:8020/debug/version

When I replace the localhost with the server name, I get Page Cannot be Displayed.
http://servername:8020/debug/version

What do you suggest I change/adjust in the Site properties?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Reply
Map
View

Click here to load this message in the networking platform