Change port listen check method