Unifi integration 'failed to connect'

Hi I have a UDMPro trying to add the unifi integration.

I have created a local user in unifi, and entered these credentials port is 443.

It just says failed to connect.

Is there anything else i can try really need to get this working.

Cheers

Sorry please ignore, I just had to put in the IP for the host, I was trying to use the host name.