Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys , i already make program at C# got public ip and added in table name IP that client side , i want to create other one for server side take those IP from sql table and add this ip in windows firewall to allow them , i already test with CMD that not work fine because syntax ... any idea how to import table IP and allow them in windows firewall.

What I have tried:

my codes for CMD maybe help other people

netsh advfirewall firewall add rule name="Ahmed" dir=in action=allow protocol=TCP localport=80

mysql -u DESKTOP-SVSH31V\SQLEXPRESS -p -D tantrabeta < tableName.sql

netsh advfirewall firewall set rule name="Tantra" new remoteip=192.168.1.31
Posted
Comments
[no name] 8-Nov-20 12:57pm    
Generate a .bat file with multiple entries.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900