By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

How to shutdown open network ports?

P: n/a
My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA
Sep 21 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a

ESmith のメッセージ:
My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA
Can C# alone accomplish these enable-disable functionalities ? I guess
some kind of dll import might be in need, I used to use network
interface provided in my C# Exp but failed to static cast the enum type
into the provided interface type.

Sep 22 '06 #2

P: n/a
Look for Win32 map to WMI (System.Management) then you might get what you
want.

chanmm

"Lenny Lennoson -- *Shark tale*" <s1******@mmm.muroran-it.ac.jpwrote in
message news:11**********************@d34g2000cwd.googlegr oups.com...

ESmith ??????:
My application when run, needs to close all outgoing ports (excluding
80,443,25). With packet filtering I've figured out how to block "new"
traffic, but how do close an existing, established connection - that is,
some server program that is waiting on connections at a certain port?

TIA
Can C# alone accomplish these enable-disable functionalities ? I guess
some kind of dll import might be in need, I used to use network
interface provided in my C# Exp but failed to static cast the enum type
into the provided interface type.
Sep 22 '06 #3

P: n/a

"ESmith" <el**********@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
| My application when run, needs to close all outgoing ports (excluding
| 80,443,25). With packet filtering I've figured out how to block "new"
| traffic, but how do close an existing, established connection - that is,
| some server program that is waiting on connections at a certain port?
|
| TIA
|
|

You can't, unless you are willing to kill the applications having these
ports open.

Willy.
Sep 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.