You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
After executing start-polaris everything works fine internally, but I can't reach that site from outside. After opening up ports on firewall and running "netsh http add urlacl ... " I'm getting 503 error. If I run a site with Flancy (similar PS micro webserver) it works with external request, so I presume some extra setting is needed for Polaris to make it visible from outside?
Steps to reproduce
Start-Polaris -port 8000 # on local
Iwr -uri http://someserver:8000 # from external machine - either hangs or getting 503
update
After some experiments I was able to make it work for http. The key was to have delegate=yes when doing netsh, and using "+" as a host name when starting polaris.
Howerver this does not fix the issue if using https
update 2
Somehow https start working externally on some specific ports if I use the ip address as hostname parameter (not working with + or actual host name). Also need to add sslcert to that port (I did it before reporting the issue, so the IP was the fix). But still can't recreate it on new ports
I also used base aspnet core app (instaled with 'dotnet new webapp' command). It works just fine using it's built in ssl cert. I only need to add urlacl (no need to set sslcer with netsh). So it's probably a better idea to switch to Kestrel. I think httplistener might be a good option to run stuff locally, for example for webapps as an alternative to WPF.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Polaris Bug Report
Description of the bug
After executing start-polaris everything works fine internally, but I can't reach that site from outside. After opening up ports on firewall and running "netsh http add urlacl ... " I'm getting 503 error. If I run a site with Flancy (similar PS micro webserver) it works with external request, so I presume some extra setting is needed for Polaris to make it visible from outside?
Steps to reproduce
Start-Polaris -port 8000 # on local
Iwr -uri http://someserver:8000 # from external machine - either hangs or getting 503
update
After some experiments I was able to make it work for http. The key was to have delegate=yes when doing netsh, and using "+" as a host name when starting polaris.
Howerver this does not fix the issue if using https
update 2
Somehow https start working externally on some specific ports if I use the ip address as hostname parameter (not working with + or actual host name). Also need to add sslcert to that port (I did it before reporting the issue, so the IP was the fix). But still can't recreate it on new ports
I also used base aspnet core app (instaled with 'dotnet new webapp' command). It works just fine using it's built in ssl cert. I only need to add urlacl (no need to set sslcer with netsh). So it's probably a better idea to switch to Kestrel. I think httplistener might be a good option to run stuff locally, for example for webapps as an alternative to WPF.
The text was updated successfully, but these errors were encountered: