How to Close a Remote IP?

chimmychang

New Member
I've got a powershell script that shows me all the connected IP's on my computer...

$showTCP = [Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()

$showTCP.GetActiveTcpConnections()

-----

Anyone know what NET framework command will close a specific IP TCP Connection?
 

My Computer

I've got a powershell script that shows me all the connected IP's on my computer...

$showTCP = [Net.NetworkInformation.IPGlobalProperties]::GetIPGlobalProperties()

$showTCP.GetActiveTcpConnections()

-----

Anyone know what NET framework command will close a specific IP TCP Connection?

Please Explain Further...
 

My Computer

System One

  • Manufacturer/Model
    Custom Built
    CPU
    Intel Core i5 2400 @ 3.10GHz
    Motherboard
    Foxconn H67MP-S/-V/H67MP
    Memory
    8.0GB DDR3 @ 665MHz (2GBx4)
    Graphics Card(s)
    AMD HD Radeon 6870
    Sound Card
    Realtek High Definition Audio
    Monitor(s) Displays
    SMB1930NW (1440x900@60Hz)
    Screen Resolution
    1280x800
    Hard Drives
    977GB Seagate ST31000524AS ATA Device (SATA) + 250GB WD iSCSI attached Drive
    Case
    Novatech Night
    Keyboard
    Standard PS/2 Keyboard
    Mouse
    Dell HID-compliant mouse
@Shadowjk

The .Net Function [Net.NetworkInformation.IPGlobalProperties]:: showTCP.GetActiveTcpConnections

Does exactly what it says...

Gets al the active TCP connections.

Then lists them out as "Remote IP's" with the process IDs.

I don't want to kill the Process ID, b/c it's a SSH server running in the background.

Just want to kill the exact remote IP.

-Anyone know the .Net Class that could be called to kill a remote ip?
 

My Computer

Back
Top