Port numbers adjustment