
while true;
do
  for i in $(seq 1031 1225); do
  echo "trying $i"
  socat file:nc_text TCP:10.10.10.2:$i 2>&1 | grep -v refused
  sleep 0.2
  done
echo "restarting"
done
