Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Is it possible to run multiple websites on single port of iis?

Is it possible to run multiple websites on single port of iis?

Scheduled Pinned Locked Moved ASP.NET
windows-adminquestion
5 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    srinivas vadepally
    wrote on last edited by
    #1

    hello friends, Is it possible to run multiple websites on single port of iis?

    Richard DeemingR 1 Reply Last reply
    0
    • S srinivas vadepally

      hello friends, Is it possible to run multiple websites on single port of iis?

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Yes.

      Configure a Host Header for a Web Site[^]

      To host more than one Web site on a Web server, you can assign a unique IP address to each Web site, designate a non-standard TCP port number for a Web site, or use host headers. Of the three methods, it is more common to use host headers than to assign unique IP addresses to Web sites or to use non-standard TCP port numbers.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      S 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Yes.

        Configure a Host Header for a Web Site[^]

        To host more than one Web site on a Web server, you can assign a unique IP address to each Web site, designate a non-standard TCP port number for a Web site, or use host headers. Of the three methods, it is more common to use host headers than to assign unique IP addresses to Web sites or to use non-standard TCP port numbers.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        S Offline
        S Offline
        srinivas vadepally
        wrote on last edited by
        #3

        I want to know that can host 2 websites on localhost with same port numbers

        Richard DeemingR 1 Reply Last reply
        0
        • S srinivas vadepally

          I want to know that can host 2 websites on localhost with same port numbers

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Using host headers, you can have two websites on the same IP address and port number. For example, _http://site1.local/_ and _http://site2.local/_ can both share port 80 on the same IP address. If you want both sites to be available as _http://localhost/_, then you'll have to create them as applications within a single site.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          S 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            Using host headers, you can have two websites on the same IP address and port number. For example, _http://site1.local/_ and _http://site2.local/_ can both share port 80 on the same IP address. If you want both sites to be available as _http://localhost/_, then you'll have to create them as applications within a single site.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            S Offline
            S Offline
            srinivas vadepally
            wrote on last edited by
            #5

            i have hosted two applications under one site and both are running perfectly on single port. So that i raised this question. But, if i tried to created separately i doesn't supported. excellent answer from you friend. Thanx.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups