Thursday, May 14, 2015

Open Socket using PowerShell

To open a socket connection on a specific host and port using PowerShell do the following:

(new-object Net.Sockets.TcpClient).Connect("proxy.us.dhl.com", "8080")

If it can't connect it will timeout. If it can connect it will return to the Powershell prompt.

No comments: