One can either pass an actual port or a zero to nsPort. When 0 is passed, a random port is selected. It was being used before we did the auto registration. So I had to reset it to the actual port that was randomly chosen. Its leftovers I guess.