The IP Domain example.com and www.example.com are different



Because of this I can’t connect my domain to hosting

As per image, you didn’t make www Proxied, hence it is showing it’s origin IP.