You know you are in port when all the flags are flying - these are taken down when the ship leaves any port.