tony75 10 Newbie Poster

Hi

I have script(ip.py) that send me ip.txt from my remote pc to my email.
My problem is my firewall in my remote pc block ip.txt file.

How can I tell Firewall in my script to allow ip.txt file from my remote pc(Add python script to firewall exceptions)?

I’m using netsh advfirewall firewall and I do like this but something wrong I think!!!

 FIREWALL_ALLOW_PROGRAM = 'netsh advfirewall firewall add rule name="ip" dir=in action=allow program="{}"

Shoud I add something in subprocess How?

See this lik please
http://support.microsoft.com/kb/947709

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.