Setup WIFI Hotspot On Laptop to Share Internet

by Oscar

Setup Wifi Hotspot on your laptop is ever so easy, only a couple of steps, all your laptops, smart phones and tablets can share the same internet connection, and it costs nothing.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

Setup Wifi Hotspot

Save these two lines into a text file, and rename it to: hotspot.bat

ssid is going to be the name of your network, key is the password of the network. Feel free to change it.

netsh wlan set hostednetwork mode=allow ssid=Hotspot_Name key=12345678 netsh wlan start hostednetwork

Right click on the file and click ‘Run as Administrator’.

11

You will find you have a additional Wireless Network Connection.

2

Sharing Internet Connection

After setting up the hotspot, we can then share the internet connection to it, so all of the devices connected can get access to the internet. It’s easy, take a look here

http://windows.microsoft.com/en-gb/windows-vista/using-ics-internet-connection-sharing

Finally

We can now try connecting to the wifi hotspot network we created on our wireless devices.

Note

I have only tested this project on Windows 7 laptops. If you managed to connect to the hotspot but have no internet connection, that might be caused by Antivirus software or firewall.

=========================================================================== ======================== Chinese Translation 中文 ========================== ===========================================================================

在微博上看到 360 要出什么无线路由器的装置,金山又搞了个什么软件来应对,都觉得很二,其实要在笔记本上实现的话非常简单,两行命令就搞掂了。

只要你的笔记本电脑能无线上网基乎都能变成无线路由器,通过简单的几步设置,手机、平板等智能设备就可以上网。一毛钱都不用。

设置 Wifi Hotspot

把这两行代码保存到一个文本,重命名成: hotspot.bat

其中,ssid 可以换成你想要的网络显示名称,key 是网络的密码。

netsh wlan set hostednetwork mode=allow ssid=Hotspot_Name key=12345678 netsh wlan start hostednetwork

然后右键点文件,用管理员身份运行。

setup wifi hotspot netsh bat script

之后你会发现多了一个无线网络连接

2

分享网络

设置好 hotspot 无线路由器还不行,还要把网络分享给无线路由器,连接的设置才能上网。

很简单,请看这:

http://windows.microsoft.com/en-gb/windows-vista/using-ics-internet-connection-sharing

最后

都弄好了,就可以在终端连接咯~要注意的是,笔记本重启后,无线路由器默认是关闭的。要用的话要再运行一下 hotspot.bat。

Note

本文只在 Windows 7 上测试过。要是能连上,但不能上网,有可能是杀毒软件造成的。

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.

1 comment

Martinez 11th August 2014 - 6:27 am

Great super , so easy so good ! Thanks !

Reply