If you have default values for server and port, they shouldn't be required. The required keyword runs before defaults get filled in.