The Social Security (Ireland) Order (Northern Ireland) 2007

(3) Where a person is ordinarily resident in the territory of one Party and is self-employed in the territory of the other Party, or in the territory of both Parties, liability for contributions for him shall be determined only under the legislation of the Party in whose territory he ordinarily resides and that legislation shall apply to him as if he were self-employed in the territory of that Party.