How to add port at windows 7 firewall ?

my task is write a code to add port (8098) at windows 7 firewall so the program can run when the firewall is turn on!
can anyone give me some sample of code to refer?

Ummmm.... No.

Any programmer who would post security related code in a public forum for USER (not Programmer) support needs to be taken out back the woodshed for a serious attitude adjustment.

Moreover... you really do need to do your own homework.

Last edited:


Fantastic Member
Premium Supporter
I am closing this thread. This forum is not to be used to get someone to do your homework that is cheating.

This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.