none
Owin.Hosting.StartOptions Access localhost without admin permissions. RRS feed

  • Question

  • I have an application which hosts a local website with the Microsoft.Owin.StaticFiles namespace. Using http://localhost:*port*/ form local computer works totally fine. Unfortunately when trying to connect with http://*localip*:*port*/ it shows me a "HTTP Error 503". I am aware that using a wildcard domain like "http://*:25874/" is possible to solve this issue but this requires admin privileges which is not an option for my case.

    I am wondering if there is a workaround for this issue by using for example host header rewrites or different techniques.

    Hope that somebody here can help me with this. Thank you very much in advance.

    • Moved by 宝宝徐 Thursday, July 20, 2017 7:17 AM
    Monday, July 17, 2017 12:26 PM

Answers

  • Hi Andreas,

    Based on your description, I think Asp.net forum could be a better place where you would get a more professional answer:

    https://forums.asp.net/

    Thanks for your cooperation and understanding.

    Have a good day:)

     

    Best regards,

    Fletcher


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, July 19, 2017 9:54 AM

All replies

  • Hi Andreas.Schmid,

    Thank you for posting in MSDN forum.

    Please refer to this link, have a try with vikomall's solution:

    1. Open your applicationhost.config file. Possible locations are:
        %userprofile%\Documents\IISExpress\config\applicationhost.config
        $(solutionDir)\.vs\config\applicationhost.config (VS2015)
        Failing that, inspect the output from iisexpress.exe to be sure.

    2. Locate your WebSite entry and add following binding with your machine name.
         <binding protocol="http" bindingInformation=":50333:your-machine-name" />

    3. Restart IIS Express

    Besides, this forum is discussing about .Net Framework setup and servicing, as your question is much related to the windows web app configuration, I suggest you go to https://www.asp.net/ or https://forums.iis.net/ forum for a much professional support.

    Thank you for your understanding and cooperation.

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, July 18, 2017 10:10 AM
  • Thank you very much for your fast and detailed answer.

    Unfortunately I cannot use IIS. I use OWIN Katana in a self host scenario.


    Tuesday, July 18, 2017 11:27 AM
  • Hi Andreas,

    Based on your description, I think Asp.net forum could be a better place where you would get a more professional answer:

    https://forums.asp.net/

    Thanks for your cooperation and understanding.

    Have a good day:)

     

    Best regards,

    Fletcher


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Wednesday, July 19, 2017 9:54 AM