Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Allowing a program through windows firewall

I am new to windows Firewall. I have seen this dialog and unable to relate the meaning of it.enter image description here

The above dialog says that "Allow python to communicate on these networks:". It then gives two checkboxes, one for each Private network and one for Public network.

So, my questions are :- 1) What is the difference between Private network and public network ? Which network out of these, does internet belongs to ?

2) what is the meaning of allowing a program to communicate on given network ? Let's take it from both Client as well as Server perspective. A program(acting as client), when allowed through firewall on a given network(public/private), does it mean that it can establish socket connection with other computers within the same network ? A program(acting as server), when allowed through firewall, does it mean that it can accept socket connections from other computers within the same network ?

3) How can I control a program to either listen for connections OR to establish connections ? By that I mean, How can I control that any python program(python.exe) must not be allowed to listen for connections ?

Thanks in advance.

like image 215
Mangu Singh Rajpurohit Avatar asked Sep 06 '25 03:09

Mangu Singh Rajpurohit


1 Answers

You can easily enable for python just follow the steps:

  1. Go to windows settings
  2. Then go to update and security-> firewall and network protection-> Allow an app through firewall
  3. Then click on change settings
  4. Search for python and tick mark both(private and public)

You should be alright to go!

like image 123
Aaditya Shah Avatar answered Sep 07 '25 20:09

Aaditya Shah