adding forward port detection for avoiding collition.