Exact same thing in my house. Shared supply and the neighbour tees off before mine.
You aren't my neighbour are you?
Problem is most likely that our pipes aren't clipped properly and shake about as the pressure changes. Getting more likely to happen these days with modern solonoid valves in washing machines and quarter turn taps leading to water hammer as the flow is abruptly stopped, so the old ways of sitting pipes unclipped in notches which worked well for decades is now leading to noise.
I can't see how you can force the neighbour to do anything as the noise is essentially down to your pipes being able to rattle about.
Question to others: would it be useful to fit a shock arrestor as close to the source of the water hammer e.g. tap as possible (in the neighbour's house if the neighbour would allow this)?