-
Notifications
You must be signed in to change notification settings - Fork 18
Browser can't reach my app (but HttpClient can) #4
Comments
Seems like a router/ firewall issue, or just lack of experience with Are you able to access your webserver from outside world if you use a Are you aware that you need to find out what your computer's ip to the On Fri, Aug 5, 2016 at 10:40 AM, ShacharWeis [email protected]
|
Did you even read my post? This is not a router/firewall issue. Everything is on the same computer. There is no "webserver to setup". I'm using this project - HttpListerner - in my code. It listens to http requests. Requests that are coming from INSIDE the process are answered, requests that are coming from outside are ignored. This is an issue with UWP sandboxing or something similar, and since this project is supposed to run on UWP it is relevant. |
Sorry for not answering earlier. I discovered this issue a bit too late. By default, the manifest enables the capability to communicate via Internet and public networks (internetClientServer). Any problems are, therefore, probably about firewalls or policies. UWP is, as you know, sandboxed and everything is not enabled by default for security reasons. In order to make this work within your localhost you have to add an exception to enable loopback (this is what Microsoft has done for Edge). When debugging, this is easy to enable: Just check the option in the Debug tab in Project properties. To do this on a Release build you might have to script it with PowerShell. I think that Fiddler (the proxy) might help you with this too. I hope this might help others who have encountered the same problem. |
I have a tiny web server running in my app that uses this project.
If I test it with an HttpClient that I create in my app, it works.
But from the outside, from my browser, I can't reach the server.
Browser is on the same Win10 computer, firewall is turned off.
Any ideas?
The text was updated successfully, but these errors were encountered: