Fetch port optionally from config file