Set default port on function declaration