In short
If the supplier is located in, or the place of supply is in, India's territorial waters, that location is treated as being in the coastal State or Union territory nearest to the relevant baseline point.
Notwithstanding anything contained in this Act,-
(a) where the location of the supplier is in the territorial waters, the location of such supplier; or
(b) where the place of supply is in the territorial waters, the place of supply, shall, for the purposes of this Act, be deemed to be in the coastal State or Union territory where the nearest point of the appropriate baseline is located.
Source: Integrated Goods and Services Tax Act, 2017 — official text published by the Central Board of Indirect Taxes and Customs (CBIC) on its Tax Information Portal (taxinformation.cbic.gov.in), including the amendments noted above.
This page is educational. It is not professional advice or a formal tax computation. Verify the position against the official source above for the period that applies to you, and consult an authorised professional before acting on it.