Detect port status