Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7724511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:42:29+00:00 2026-06-01T04:42:29+00:00

I am facing a dilemma related to another question but not exactly the same.

  • 0

I am facing a dilemma related to another question but not exactly the same.

I want to use IIS Express with a custom URL but without modifying the local HOSTS file.

Specifically, for me, dev.example.com resolves to 127.0.0.1 using DNS (our DNS is set up so that *.example.com resolves to 127.0.0.1). This is what I want to use as a project URL. If I add dev.example.com to my HOSTS file, it works, but if I don’t, it doesn’t. I’m guessing this is because Visual Studio doesn’t recognize this as being a local URL.

Is there a way to not modify the HOSTS file but still use a custom URL like dev.example.com as a Project Url in Visual Studio with IIS Express?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:42:30+00:00Added an answer on June 1, 2026 at 4:42 am

    Yes-sortof. IISExpress configuration is stored in the executing users profile under:

    C:\Users\<username>\Documents\IISExpress\config\
    

    You’ll need to edit applicationhost.xml

    Locate the <sites> section and extend:

            <site name="WebApplication1" id="20">
                <application path="/" applicationPool="Clr4IntegratedAppPool">
                    <virtualDirectory path="/" physicalPath="C:\inetpub\WebApplication1" />
                </application>
                <bindings>
                    <binding protocol="http" bindingInformation="*:45965:localhost" />                  
                    <binding protocol="http" bindingInformation="*:80:dev.example.com" />
                </bindings>
            </site>
    

    Note that the port 80 must not be occupied by IIS in case it’s running on your dev box.

    The problem that this solution is facing, that with these settings pressing F5 in VS, or otherwise start the website from VS will ALWAYS want to start on localhost, and will not initialize the other binding. You have to start IISExpress manually with the following:

    c:\Program Files (x86)\IIS Express\iisexpress.exe” /site:WebApplication1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing the same dilemma as it is mentioned in this Question. Repository
So, the latest dilemma I am facing: I am using jQuery DatePick (not DatePicker)
Im facing an issue which I believe to be VAO-dependant, but Im not sure..
I’m afraid this is another noob question. What I want to do is to
I'm facing a dilemma (!). In a first scenario, I implemented a solution that
Facing a problem, it seems my data stored in SQL Server does not stored
Iam facing problem in understanding and converting a matlab code into opencv. I want
First of all, this isn't another question about storing images on DB vs file
I've been in a dilemma lately on whether to use CSS3 for styling and
im facing a problem where i need some advice. I want to have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.