Change the port number for each Visual Studio website project, making it easy to work on multiple website projects without the hassle of closing open websites to release the ports they use. Typically, this is port 51910.
This took me a while, but I finally found the right files to edit.
Close out of the solution you are working on; you do not have to close VS, just the solution.


You have two files in two locations.
First, you must have [Show Hidden files and folders] enabled.
[Show Hidden Files and Folders]
  1. Open Search and type [CP]
  2. You will see two options. [Command Prompt] and [Control Panel].
  3. Choose [Control Panel].
  4. When the window opens, click on [File Explorer Options]
  5. Click the [View] tab.
  6. Under [Hidden Files and Folders]
  7. [[x] Show hidden files, folders, and drives].
  8. Click [OK] to the Prompt.
  9. Click [Apply] and then [OK].
File #1
[applicationhost.config]
Inside your project Folder.
  1. Open the [.vs] folder
  2. Then open the [sitename.slnx] folder
  3. Next, open the [config] folder
  4. Open [applicationhost.config] in your favorite editor. I use [Notepad++]
  5. Search [<sites>]
    You should see two locations.

    Copy
    Search Site
    Search Google

    (Multiple is the name of my site; yours will be different)

    Copy
    Search Site
    Search Google

  6. Under the [id="2"], you should see something like this.
    Copy
    Search Site
    Search Google

    Change the port number to 11 "51911"
    Copy
    Search Site
    Search Google

    [Save] the file
File #2:
[Property Name="VWDPort"]
Inside your project folder, open the [.slnx] file. (Mine is [Multiple.slnx])
The last property in the file should be.
Copy
Search Site
Search Google

Change the number to match the one we did above.
Copy
Search Site
Search Google

[Save] the file and open the solution up in [VS], and run it.
You will now be running on [Port 51911] while the other site is running on [Port 51910].
Perform the above on each website you create, making it easier to keep track of all sites that are running without the dreaded port conflict error.