wordpress infinite redirect loop



My domain "" is set to a google cloud wordpress server

If i change my site address and wordpress address from ip to domain, because i want to see my domain name in the browser not my ip. The webpage will be in an infinite redirect lope between the ip and my domain. Can someone help what causes this?


Thank you