Ensure both devices are connected to the same Wi-Fi network. Restart your Wi-Fi connection, and if using Bluetooth, make sure it is enabled on both devices. Restarting your iPhone and computer can also help resolve connection issues.