Category Archives: Network

Test network ports with Powershell

[codesyntax lang=”powershell”] #Create socket object $Socket = New-Object Net.Sockets.TcpClient #Connect $Socket.Connect(“172.22.2.10”, “8888”) #Check if connected $Socket.Connected #Close connection $Socket.Dispose() [/codesyntax]

Posted in Network | Comments Off on Test network ports with Powershell