Checking the port before installing.