'Android Studio Emulator only returns "AndroidWifi" on getScanResult()

I am trying to implement a Wi-Fi scanner to connect to my university's Wi-Fi as I want my app to interface with my group's server, but the server can only be accessed when connected to campus Wi-Fi. I followed the android developer's tutorial on Wi-Fi scanning and made sure to include fine, coarse location permissions and change and access wifi state permissions as my app is running API level 30. My scan succeeds but the results of the scan only contain "AndroidWifi" and while I can access the Internet from the emulator I can't connect to my server and can't see my campus Wi-Fi while scanning.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source