Hello,
I wanted to test my Windows Store App on a surface pro. The App connects to an REST Service that runs on a local server.
I got the follow error: “An attempt was made to access a socket in a way forbidden by its access permissions 192.168.0.100:80”.
The app can access the service when fiddler runs and can access internet resources with and without fiddler running.
I was confused about this issue. But when you think about what fiddler does, the problem is clear.
Fiddler acts as a proxy and the application can not see where the traffic goes to.
The solution is to check the capability “Private Networks (Client & Server)”.
Windows Store Apps have 3 network capabilities.
- Internet (Client)
- Private Networks (Client & Server)
- Internet Client & Server
I thought selecting Internet (Client) would include Private Networks ( Client & Server), but I was wrong.
If you want to connect to your local network and the internet, you have to check both capabilities.
Posted
Jun 26 2014, 09:05 AM
by
Holger Vetter