Add random port check