How to create an adhoc network on your PC to connect to Internet via WiFi

If you only have Internet via Ethernet cable and you do not want to spend all your MB of you smartphone, you should try creating a network with your PC so you can connect your home Internet, but, how can this be done?
1 answer

CMD Solution

1. Open cmd as administrator and write
"netsh wlan show drivers”
If Host network permited is “Yes”, then you can do it. If not, you willnot be able to do it.
2. Write
"netsh wlan set hostednetwork mode=allow ssid=red1 key=123456789"
where 123456789 is the password of your network.
3. Initiate the network writing
"netsh wlan start hostednetwork"
4. If you do not get an error, you have finished. If you do, continue to step 5.
5. Go to
Device Manager > Network Adapter > Microsoft hosted virtual network adapter
and disable and reenable the Microsoft hosted virtual network adapter
6. Last step:
• Open Network Connections
• Give a right mouse click on the network icon with which we connect to the internet and choose "Properties".
• Open the Sharing tab.
• Check the box "Allow other network users to connect through the Internet connection."
• In the scrolling menu, choose the network created ad hoc.
• Click the "Settings" button and mark the protocols used.
• Save changes.

Main source (with pictures; Spanish webpage, but I guess google translate is enough to understand it):