-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wiki update request #127
Comments
Kudos for finding this solution 👍 . It would be great if we could add this to our FAQ or a separate page. Any suggestion on where to put it? And could you format the text a bit to be used as Wiki info? |
OK, I'll try. |
This solution didn't solve it for me. I followed it carefully. Is there something else needed in current builds of Windows? |
I didn't try to repeat it for a long time. Maybe something changed. |
Im on Win10 build 17134.165. No error, I just simply can't make a request (for example, from browser to my UWP app listening on 8800). I get a 400. Worked ok on an older Win10 machine, so I know RestUp and my little test app is ok (been using it a while, its great). |
Resolved. I had two apps with different port settings I was working with and the failure was simply due to the request going nowhere. New problem: There is a huge 20 second delay for Restup to respond to any request, even a simple hello-world GET request. I may need to open a new issue. |
//https://stackoverflow.com/a/33263253/647728 For a line of business app use the checknetisolation.exe tool to grant the app a loopback exception. To enable loopback use this command: c:>checknetisolation loopbackexempt -a -n= c:>checknetisolation loopbackexempt -d -n= |
I would like to add to this - even with the loopbackexempt as per my above comment, I still could not get the StreamSocketListener to accept incoming connections from my local machine into the UWP app running locally. The note on this page is very subtle:
You cannot use the loopback exemption to connect between processes/apps - only within the same app as a loopback exemption. |
Hello.
At last I found how to configure local environment to run app with Restup server locally without any device. I think it will be useful to put this information into Wiki. I'm not familiar with GitHub Wiki maybe someone can help with it or just copy-paste the following guide?
There are two steps to configure an environment.
This will allow to start UWP application with IoT library referenced locally. But the server will not be accessible from local machine (e.g. http://localhost:8080) because of local loopback prohibiting.
Make sure you changed solution target platform from ARM to X64.
Run in command-line:
CheckNetIsolation.exe LoopbackExempt -s
You'll get a list of IoT applications registered similar to
Now you have to run debugging session with loopback enabled:
CheckNetIsolation.exe LoopbackExempt -is -n=IoTCoreDefaultApp_1w720vyc4ccym
That's all. Now you can open your web application from local machine: http://localhost:8080. Don't forget to set correct port which is specified in HttpServerConfiguration.ListenOnPort(8080) method.
You can also configure auto startup of loopback enabling via scheduled tasks:
schtasks /create /tn MyTask /f /sc onstart /ru system /tr "checknetisolation LoopbackExempt -is -n=IoTCoreDefaultApp_1w720vyc4ccym"
The text was updated successfully, but these errors were encountered: