Added func to get default port.