It looks like you want to continually do a netstat and grep out only the lines that have the string '6000' in them.
I tried the following on my PC and on my unix box and it works on both (although I had to search for another number).
while (1) {
print for (grep {/6000/} `netstat -n`);
sleep 5;
}