Check if correct port is set.