Use random port number in uistatic mock core