How to insert values in 1st occurance out of two occurance in a file

Hi
I have a file which contains the following two lines which are same But I would like to insert the value=8.8.8.8 in the 1st occurance line and value=9.9.9.9 in the 2nd occurance line.

<parameter name="TestIp1" value="">
<parameter name="TestIp1" value="">

Please suggest

One way:

awk 'BEGIN{FS=OFS="\""}
$2=="TestIp1" && i && !j {$4="9.9.9.9";j++}
$2=="TestIp1" && !i {$4="8.8.8.8";i++}
1' file

Regards