If your IIS application pool is associated with a site name, you can easily configure it in Visual Studio by navigating to your project's properties. Go to Web, then find the Servers section and select External Host. In the Project URL field, enter your hostname. When you run your project, it will automatically attach to the specified host.Project Properties