fix
Improve port conflict detection