Pass port as script parameter.