The iPhone cannot find the PC
Make sure both devices are on the same Wi-Fi network, not a guest network and not mobile data. Some routers keep devices apart ("AP isolation" or "client isolation"); turn that off or use your main network. A VPN on either device can also block local connections.