can run funcion for every port