Stupid mistake for checking ports