Complete Linux beginner here.
I installed Ubuntu 18.04 yesterday, dual booting with Windows 8.1.
When trying to connect to a WiFi network, it doesn't detect any of the networks (not mine or my neighbors'). I tried creating a hotspot from my Android phone and to my surprise, it detected it immediately.
I searched around on the internet and tried restarting the network manager service, changing the channel on my router, and some other things, but nothing worked.
When I boot into Windows, my wifi along with all the other networks is detected and connects with no problem.
Edit: Here's the output of running
lspci -knn | grep Net -A3
captaindroid@Akash-PC:~$ lspci -knn | grep Net -A3
08:00.0 Network controller : Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter [103c:804c]
Kernel driver in use: rtl8723be
Kernel modules: rtl8723be
09:00.0 Ethernet controller : Realtek Semiconductor Co., Ltd.
TL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 0a)