Tackle a Mac’s name changing with sequential numbers
When you share files and other services from your Mac on the local network, the systems on the network will use your computer’s name to distinguish it from others that are available. In general, computers usually have unique names, but if the system detects the name is already in use then it will dynamically assign a sequential number to itself so network services may still be used. For example, if you purchase a new computer and call it “My Mac” similar to your old one, then it will rename itself “My Mac (2)” and appear as such on the local network.
This renaming allows the system’s…
Read more from the original source: Tackle a Mac’s name changing with sequential numbers