publishing asp.net application to the internet

前端 未结 3 623
[愿得一人]
[愿得一人] 2020-12-07 06:07

i have a web app that runs locally on our network. the way users access it is by going to myserver:80/site/default.aspx

i reconfigured the settings to

相关标签:
3条回答
  • 2020-12-07 06:26

    When moving from Visual Studio's built-in web server to IIS, often you need to simply remove the top level directory form the URL:

    ipaddress/default.aspx
    

    or simply

    ipaddress
    

    if default.aspx really is a default.

    0 讨论(0)
  • 2020-12-07 06:26

    In normal case if you are hosting your site in IIS and if you are having your IP fix you can also browse your website through your local ip in your network by address by keeping your 'ipaddress' in place of 'localhost'. Now if you wants to access it from your global ip you need to add binding to the IIS and then it will respond to all the requests.

    So in your particular case you need to add binding with your IP (check it from whatismyip.com). Go to IIS -> Sites -> Default Web Site. On right hand side column you will get bindings. Add new binding in it.

    0 讨论(0)
  • 2020-12-07 06:49

    You need to edit the host header bindings in IIS for your website.

    If you are really on IIS 5.1 (which ONLY shipped with Windows XP Pro) then do the following:

    1. Open your IIS Manager (go to start > run > inetmgr).
    2. Expand the computer name.
    3. Expand websites.
    4. Right click on the site name
    5. Go to the Website tab
    6. Click on the Advanced button
    7. In the "multiple identities for this web site" click the Add button
    8. Set the IP address. Leave the Host Header Value blank
    9. Click Ok

    At this point there should be 2 identities listed. One that maps the DNS name to the IP address and another that only has the IP address.

    IF for some reason it warns you about duplicate bindings, go to the other sites and remove any that tie the IP address to a blank host header. Then come back to this site and set up the blank configuration.

    0 讨论(0)
提交回复
热议问题