Typically, this indicates a network/firewall/VPN or some other network setup issue. But the network sync functionality has only recently been added to the iOS app. So it might also be a bug.
First, make sure the phone is connected to the same physical network as the server.
Then here’s a test you can use to determine whether the device can access the server. Trying it on different devices on the same network might help diagnose the issue.