updating ports