Cannot start Hosted Network

I have created a hosted network on my laptop in order to be able to share an internet connection between my laptop and smartphone and it worked very well. Unfortunately, sometimes I cannot start the network. I am running the command ┬źnetsh wlan start hostednetwork┬╗ but I am getting the message that the hosted network cannot be started, the group or resource is not in the correct state. But sometimes it works without problems. What could be a reason for such kind of behavior?
1 answer

One of the things you need to know about hosted network created in that way that it is a temporal network, so each time you put your laptop to sleep or restart it you need to restart your hosted network again. If you need to do that often it could be useful to write the starting command in the batch file (file with extension .bat) and then just run it in administrator mode. If you see the error that the hosted network cannot be started, the most common reason could be that the virtual internet adapter you have created is now disabled for some reason. To solve that issue you need to navigate to your Network adapters and enable your virtual internet adapter (Microsoft Virtual WiFi Miniport or something like that). If you cannot find it at all, try to restart your normal WiFi adapter (disable and then enable it). After you must be able to see your virtual connection and to start your hotspot with your command