Skip to main content

Pinging via IPv4

All PowerShell versions

You can use ping.exe just like any other command inside PowerShell scripts. By adding “-4” to the command line, you can force ping to use IPv4 (add “-6” to force IPv6 instead).

PS> ping localhost -4 

Twitter This Tip! ReTweet this Tip!

Posted Nov 13 2014, 06:00 AM by ps1


I am the one