check for netcat, proceed only if port is accessible