Be more precise with in _check_tcp_port