I have question regarding the Chain ID and Network ID for Ethereum Private networks as I have been unable to find a solution online. I am just confused as to how the network IDs and Chain IDs are allocated? Is it first come first served? And what would happen if I used the Network ID 1 and Chain ID 1 for my private network? How do I choose one and, if I were to choose a random one how would I prevent someone from using/connecting to it?
Just a quick side note. In terms of public networks, what is the point of specifying different chain IDs when we could just specify a different Network ID?
Cheers!