locked
Application hosted in IIS is accesible with the host name from some machines but not in others RRS feed

  • Question

  • User901946724 posted

    I hosted an application under default website in IIS. the application is windows authenticated intranet Application. When I try to access the application outside the hosted server. I am able to access it with the host name from some machines. while the other machines throw error message "The resource cannot be found". in these machines(where i get the error) if i try to access with the IP address instead of host name i am able to access the site.

    my host server name is kdev

    i try to Access the application as http:\kdev\usersetupapp\home.aspx This works fine in some machines. but not in other system I am able to access the application with the IP adress as shown below

    http://[10.0.0.1]/usersetupapp/home.aspx

    Please help me resolving the issue

    Also please let me know if it is fine to host an intranet application under default website itself, or do I need to host it as a separate website. Also If i have to host as separate website do i need to ad DNS entry for the host name?

    thanks

    Wednesday, July 10, 2013 7:03 AM

Answers

  • User-549590233 posted

    you need to add host entry in your server in which your application has been deployed..

    Steps : navigate to following path 

    C:\WINDOWS\system32\drivers\etc

    you ll find hosts file there.

    add host name there you will able to access your application.

    example 

    192.192.192.192 SERVERNAME

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 10, 2013 7:35 AM