UtilNetworkPortScanRange Method
Scans for open ports in a range of port numbers on the specified IP address.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static List<int> PortScanRange(
string address,
int portStart,
int portEnd,
AddressFamily family,
ProtocolType protocol
)
Public Shared Function PortScanRange (
address As String,
portStart As Integer,
portEnd As Integer,
family As AddressFamily,
protocol As ProtocolType
) As List(Of Integer)
Dim address As String
Dim portStart As Integer
Dim portEnd As Integer
Dim family As AddressFamily
Dim protocol As ProtocolType
Dim returnValue As List(Of Integer)
returnValue = UtilNetwork.PortScanRange(address,
portStart, portEnd, family, protocol)
public:
static List<int>^ PortScanRange(
String^ address,
int portStart,
int portEnd,
AddressFamily family,
ProtocolType protocol
)
static member PortScanRange :
address : string *
portStart : int *
portEnd : int *
family : AddressFamily *
protocol : ProtocolType -> List<int>
No code example is currently available or this language may not be supported.
- address String
-
The IP address.
- portStart Int32
-
The starting port number.
- portEnd Int32
-
The ending port number.
- family AddressFamily
-
The address family (Ipv4, Ipv6, etc).
- protocol ProtocolType
-
The protocol type (Tcp, Udp, etc).
ListInt32
A
ListT that contains the number of the open ports.
This is a code example.
No code example is currently available or this language may not be supported.
Dim openPorts As List(Of Integer) = PortScanRange("localhost", 1, 1000, AddressFamily.InterNetwork, ProtocolType.Tcp)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.