Ping website with port using PowerShell

Update
Thanks, jrlops ! There’s an embedded PowerShell way for doing this:

Test-NetConnection http:/mywebsite.mydomain -Port 1234

Using .Net object:

(New-Object System.Net.Sockets.TcpClient).Connect( `http://mywebsite.mydomain` , 1234 )
Advertisements

One Response to Ping website with port using PowerShell

  1. jrlops says:

    With Test-NetConnection http:/mywebsite.mydomain -Port 1234 You can too.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: