objects and sending x and y

i have made a few games on here but im having trouble with a simple thing

in multiplayer games i cant send individual x and y of an object

for example a factory builds a tank and u send x and y position of the tank to the other player but when you build another tank it thinks its the same object so just puts them both together on player 2 screen …

ive made each tank to be given a random ID but when u send this data over network you only have position of object tank so it thinks there all the same

any ideas people?