auto refresh ports when not open