Setup WIFI Hotspot On Laptop to Share Internet

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.

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 上测试过。要是能连上,但不能上网,有可能是杀毒软件造成的。

One thought on “Setup WIFI Hotspot On Laptop to Share Internet

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you Robot? *

I don't look at blog comments very often (maybe once or twice a week), so if you have any questions related to multirotor please post it on this forum IntoFPV.com... You're likely to get a response from me faster on there.