Change port definition and remove hardcoded urls