13

I really don't know how to look for what I am trying to achieve. I will add two images to show you in a better way what I am doing here.

enter image description here

enter image description here

As you can see I have added a blocking rule in firewall which will block a range of addresses(first rule on the second image) of a specific application.

Is there a way to do something similar on windows phone? I am not looking for some code or anything. Just for some guidance. Where should I look? What should I look for? Windows phone don't have firewall and I don't want to use any external firewall app's if there is one...

lokusking
  • 7,396
  • 13
  • 38
  • 57
Alejandro
  • 308
  • 2
  • 11

2 Answers2

5

There is nothing like a firewall for Windows Phone. You don't have such a deep access to the network layer. Compared to desktop PC operating systems users and developers are much more restricted in the things they are allowed to do. That leads to less vulnerable systems.

The good side of a restricted system is that it's much harder (or almost implossible) to create a virus, trojaner etc. for it.

On the other hand you are not able to control the system in its depth since there is no API an anti virus software or firewall would need to consume.

In short: It's not possible to block IP addresses for specific applications.

Wosi
  • 41,986
  • 17
  • 75
  • 82
2

You can't do it with the public API (no such API is available), however you still able to achieve your goal on the interop unlocked handset.

Please refer to this forum about unlocking your phone, and this thread about blocking some sites (i.e. it's an old trick with the editing of \windows\system32\drivers\etc\hosts file).

I'm pretty sure, you can also add a real firewall rule ('cause firewall service is up and running on the WP8.1 & up OS'es) to the registry but this require more investigation.

SeNS
  • 196
  • 2
  • 11
  • 2
    **[update]** Just checked my Lumia 950 (interop unlocked, with "Interop Tools" installed): there are **standard** Windows firewall rules at the **HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules** So, you can block some IPs (or do whatever you want - whatever is possible with the standard Windows firewall rules) on your **interop unlocked** phone! The only GUI part is missing on the phone but you are always able to create your rule(s) on desktop and copy new registry value to the phone. – SeNS Oct 01 '16 at 12:28