Using uNet.
Unity has a match making service called Unity Relay Server but it might not exist anymore.
I'm using uNet. All you have to do is insert a network manager and a network HUD for testing.
Everything that is going to be communicated over the network needs a network identity.