• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

Powershell Test Network Connection

June 15, 2020

Here’s the command to test a network connection in Powershell.

C:> Test-NetConnection -ComputerName server -Port 443

C:> Test-NetConnection -ComputerName server -Port 443

Result:

ComputerName     : server
RemoteAddress    : 10.0.0.5
RemotePort       : 443
InterfaceAlias   : Ethernet 0
SourceAddress    : 10.1.1.34
TcpTestSucceeded : True

ComputerName : server RemoteAddress : 10.0.0.5 RemotePort : 443 InterfaceAlias : Ethernet 0 SourceAddress : 10.1.1.34 TcpTestSucceeded : True

Filed Under: Windows Tagged With: port, powershell, test-netconnection, windows

Search This Website

Subscribe Via Email

  • Home
  • About
  • Archives

Copyright © 2023