Set ports correctly for local bind.