Online Ping, Traceroute, DNS lookup, WHOIS, Port check, Reverse lookup, Proxy checker, Bandwidth meter, Network calculator, Network mask calculator, Country by IP, Unit converter. Your IP is 157.55.39.106. Online service Port check. Port check – Tests if TCP port is opened on specified IP. IP address or host name. If a higher level protocol uses port numbers, they are assumed to be in the first eight bytes of the original datagram's data. The variable size of the ICMP packet data section has been exploited. In the 'Ping of death', large or fragmented ping packets are used for denial-of-service attacks.
--> Displays diagnostic information for a connection.
Syntax
Description
The Test-NetConnection cmdlet displays diagnostic information for a connection.It supports ping test, TCP test, route tracing, and route selection diagnostics.Depending on the input parameters, the output can include the DNS lookup results, a list of IP interfaces, IPsec rules, route/source address selection results, and/or confirmation of connection establishment.
Examples
Example 1: Test ping connectivity
This command tests ping connectivity to a default server.
Example 2: Test ping connectivity with detailed results
This command tests ping connectivity to a default server and sets the InformationLevel parameter to Detailed.
Example 3: Test TCP connectivity and display detailed results
This command tests TCP connectivity to a default server and sets the InformationLevel parameter to Detailed.
Example 4: Test a connection to a remote host
This command tests ping connectivity to a remote host named www.contoso.com.
Example 5: Perform route diagnostics to connect to a remote host
This command performs route diagnostics to reach a remote host named www.contoso.com.
Example 6: Perform route diagnostics to connect to a remote host with routing constraints
This command performs route diagnostics to reach a remote host named www.contoso.com with routing constraints.
Required Parameters
Specifies the common service TCP port number.The acceptable values for this parameter are:
- SMB
- HTTP
- RDP
- WINRM
Type: | String |
Accepted values: | HTTP, RDP, SMB, WINRM |
Position: | 1 |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates that route diagnostics runs to output the route and source address selection information for the remote host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the TCP port number on the remote computer.The cmdlet uses this port number to test connectivity to the remote computer.
Type: | Int32 |
Aliases: | RemotePort |
Position: | Named |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Optional Parameters
Specifies the Domain Name System (DNS) name or IP address of the target computer.
Type: | String |
Aliases: | RemoteAddress, cn |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName, ByValue) |
Accept wildcard characters: | False |
Specifies the interface constraint to use for route diagnostics.
Type: | UInt32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the source address constraint to use for route diagnostics.
Type: | String |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the number of hops to traverse in a trace route command.
Type: | Int32 |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the information level.The acceptable values for this parameter are:
- Detailed
- Quiet
If you set this parameter to Quiet, the cmdlet returns basic information.For example, for a ping test, this cmdlet returns a Boolean value that indicates whether the attempt to ping a host or port is successful.
Type: | String |
Accepted values: | Quiet, Detailed |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Indicates that Tracert runs to test connectivity to the remote host.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
NetRouteDiagnostics
This object displays route diagnostics information and is returned if you specify the NetRouteDiagnostics parameter set.
NetConnectionResults
This object displays connection results and is returned if you specify the CommonTCPPort, RemotePort, or ICMP parameter set.