Make Your Laptop as WiFi Hotspot :
Firstly make sure that you have a laptop or a computer with wireless adapter, the Internet connection to laptop could be wired or wireless. Now simply follow the below steps to make your laptop as Virtual WiFi Router.
Step 1 :
First of all download the free software for hotspot, suitable for mostly all type of OS.

Step 2
Install the Software with following the instructions.
Step 3
Select a security connected mode, there are two options first one is AdHoc-OPEN and other one is AdHoc-WEP.
And set a password of your choice.

Step 4
Step 5 :
Make your Smartphone as WiFi Hotspot :
Use your Android Smartphone as a WiFi Hotspot to share your Internet with your friends. For this Hotspot Connection, you must have Mobile Data Balance in your device.
Step-1 Turn on Mobile Data

Step-3 Select the Tethering and Portable Hotspot option.
Step-4 Turn on the Portable Hotspot option and configure your Device name and Password protect your Hotspot.
Now your device is ready to share your Internet connection. This information is useful for those who are not much aware of internet. By these methods you can make your Laptop/Samrtphone as WiFi Hotspot.