We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: deploy application without port

    Sep 14, 2020 07:46 AM|Brucz|LINK

    Hi Roemesh,

    It is difficult to deploy application without port. 

    For example you have app A and app B , both of them deploy and bind to same IP When you want to access app A through IP, how does the server distinguish whether you want to access A or B? So you should deploy with port, and access app A though http://+IP+port.

    Most sites are coming like xyaz.com/? because of default port, just like http://localhost in IIS. It seems no port in url, actually, it binds to port 80 and complete url is http://localhost:80. 

    You can deploy sites without specifying port, but cannot without port.

    Here are some steps to deploy site which you can access through xyz.com.
    1.    Add “ xyz.com” in host. The hosts file in C:\Windows\System32\drivers\etc
    2.    Add site in IIS. Fill in site name, application pool, physical path.
    3.    You don’t need to specify port, keep it as 80. Fill in the host name as xyz.com.

    Then you can access the site through http://xyz.com .

    Best regards,


    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.