duplicate port check