Replace network port allocator
Clean port allocation