It iterates by means of each and every line in the output of the subsequent command: netstat -aon It seems to me, that is a cross-domain issue due to the fact you are not permitted to create a request to a unique area. You need to find remedies to this https://helpmehigh.com/