Network request failed ERROR trying to sync Joplin iOS against NextCloud 18

I met the same problem on my iPad when I sync against with my WebDAV server, the same url and account information works well on both windows and android end. I found that if I use the IP address instead of a DDNS address it sync successfully, I think the issue happens on the domain name resolution.