Ok, the problem may be that if the planet is named "planet115" it is not necessarily the 115th planet in this star system(if you delete a planet meanwhile eg.). The true number of the planet is the position in the planetlist of the star. Could be fun to count around 100 planets

. If you count mind that all programs start counting with
0!!! So the third planet would be e.g. planetIndexA 2.
Another way is to create one 'dummy' connection from the wormhole to another newly added planet as last action and save afterwards. When you open the map with a texteditor look for the last connection in the list. Its the one you just created. Make sure you are at the right Starsystem(Its helpful to give the system a name. That way you can find the right one easily in the textfile). E.g.:
connection
planetIndexA 3
planetIndexB 8
spawnProbability 1.000000
type "PhaseLane"
As the higher count must be our new created planet. Planet 3 must be our wormhole!
Now you know the number of the Wormhole so write it down. Delete the 'dummy' connection and the dummy planet (the last in the star-list) and proceed with the second wormhole in the same way.
Lets say the second wormhole is the 10th planet of the third star.
Now you have your two numbers and use them this way.
interStarConnectionCount 1
interStarConnection
starIndexA 0
planetIndexA 3
starIndexB 2
planetIndexB 9
spawnProbability 1.000000
type "Wormhole"
Of course you have to increase the counter for each wormhole (no counting of 0 here!)
You cannot see the connection in ForgeTools but if works just fine if you send a ship through.
Good luck.