PortCheck 1.3.1

dotnet add package PortCheck --version 1.3.1
NuGet\Install-Package PortCheck -Version 1.3.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PortCheck" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PortCheck --version 1.3.1
#r "nuget: PortCheck, 1.3.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install PortCheck as a Cake Addin
#addin nuget:?package=PortCheck&version=1.3.1

// Install PortCheck as a Cake Tool
#tool nuget:?package=PortCheck&version=1.3.1

PortCheck

Module for quick check of open ports on the network

Used class .NET: System.Net.Sockets.TcpClient and method BeginConnect

Install: Install-Module PortCheck

Dependencies: Install-Module ThreadJob

Format: Get-PortCheck <IP-Address/Subnet> <Port> <Timeout>

Works in PowerShell versions 5.1 and 7.3

Examples:

PS C:\Users\lifailon> Get-PortCheck 192.168.3.102 3000

IP            Port Status
--            ---- ------
192.168.3.102 3000 Opened

PS C:\Users\lifailon> Get-PortCheck 192.168.3.102 22,80,443,3000,3389,8085,8086

IP            Port Status
--            ---- ------
192.168.3.102 22   Closed
192.168.3.102 80   Closed
192.168.3.102 443  Closed
192.168.3.102 3000 Opened
192.168.3.102 3389 Closed
192.168.3.102 8085 Closed
192.168.3.102 8086 Opened

PS C:\Users\lifailon> Get-PortCheck 192.168.3.102 8080-8090

IP            Port Status
--            ---- ------
192.168.3.102 8080 Closed
192.168.3.102 8081 Closed
192.168.3.102 8082 Closed
192.168.3.102 8083 Closed
192.168.3.102 8084 Closed
192.168.3.102 8085 Closed
192.168.3.102 8086 Opened
192.168.3.102 8087 Closed
192.168.3.102 8088 Closed
192.168.3.102 8089 Closed
192.168.3.102 8090 Closed

PS C:\Users\lifailon> Get-PortCheck 192.168.3.0 8085 100 -Open

IP            Port Status
--            ---- ------
192.168.3.99  8085 Opened
192.168.3.100 8085 Opened
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.1 121 2/5/2024
1.3.0 93 2/5/2024