Section 87(1)(d) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(d)All executive officers in uniform holding an appointment in command of a ship in commission (including a shore establishment where the latter condition applies) or sea-going tender, and all non-executive officers in uniform holding an appointment in command of a shore establishment in commission, when proceeding on board or leaving one of Indian Naval Ships. Officers coming on board by a brow should not be piped unless arriving at a prearranged time. The side shall not be piped at any shore establishment.