While doing a college project, I had to use the Raspberry-Pi for the first time and needed to connect it with the laptop without a cable. As I remember, it required some troubleshooting.

https://www.instructables.com/Connecting-Raspberry-Pi-to-Laptop-Without-HDMI-or-/