Switch WiFi to access point mode in Windows
It just so happened that at work to get the full Internet without restrictions, I have to use a netbook and a 3g modem. Recently, having bought an iPod Touch, I really wanted to connect it to the Internet. If the smartphone could still get onto the Internet on its own, then with the player it is somewhat more difficult.
One option is to connect using a sync cable. The option is not very convenient, since there is absolutely no desire to carry a cable with you all the time, and iTunes also does not want to be installed. The second option, the one that is described in this article, is a connection via WiFi. On Habrahabr already mentioned a similar problem and its solution , but for Linux. Our task is to configure the same for Windows.
- Netbook, ASUS 1215B
- Internet via USB 3G-modem
- Player and smartphone with WiFi
- Get on all devices internet
Before starting, many are advised to update the WiFi card driver on the computer. Personally, I did not do this, but everyone decides for himself.
- You can use graphical utilities such as Connectify and Virtual Router . They work, they even work well, but they eat resources. Some people complained that they eat resources very much.
- You can do everything yourself through the console using netsh . This is the method I chose. All actions must be performed on behalf of the Administrator.
First of all, you need to create a wireless network using the following command
where MyHomeInternet is the network name (ssid), pass12345678 is the password to enter.
The success of the command will look something like this:
Now you can go to Control Panel \ Network and Sharing Center \ Change adapter settings . I have it called "Wireless Network Connection 2".
Since the connection is in the “No connection” status, we need to enable it. To do this, run the command:
After receiving the phrase Hosted network is running , the network will be running and in the list of connections we will see your network connection. In our example, this is MyHomeInternet.
To stop the network, you must use the command:
A WiFi network has been created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, you must:
- go to Control Panel \ Network and Sharing Center \ Change adapter settings ;
- go into the properties of the connection through which you go online (I have Internet MTS);
- Access tab ;
- check the box next to " Allow other network users to use the Internet connection of this computer " and select from our list our created network - "Wireless Network Connection 2";
- click OK;
- disable and enable 3G connection; (ideally restart the computer)
- disable and enable the WiFi network.
Ideally, after these actions, the laptop will turn into a small WiFi point. To do this, take the iPod, turn on WiFi and see our created MyHomeInternet network. Enter the password and connect. There is Internet.
- First of all, after each Windows startup, you will have to start the network using the netsh wlan start hostednetwork command . It is solved by writing a small script and sending it to startup. Another option is to create a shortcut on the desktop and start the network only when necessary.
- OS must be Windows 7.
- The connected device must support WPA2-PSK / AES
- update the driver of the wireless adapter to a newer one
- run the console as administrator
- perhaps restarting the computer and starting the network as administrator will help
- verify the password
- manually register in the properties of TCP / IP connections on the "server" and the client network settings. For example, for the server: ip - 192.168.137.1, mask - 255.255.255.0 and for the client: ip - 192.168.137.2, mask - 255.255.255.0, gateway - 192.168.137.1, dns - 192.168.137.1
- make sure that you have shared it (see paragraph “Connecting the Internet”)
- try to go not by the domain name, but by the IP address. If it goes, it means time to think about entering the DNS server in the client and / or server settings.
As you can see, it is possible to solve such a simple task without using third-party software. Nevertheless, sometimes it happens that you can do without it. In my case, there were problems with DNS and even indicating the Google Public Domain server in the TCP / IP settings, I could not do anything. Therefore, I had to resort to using the BIND package and setting it to 127.0.0.1. It is configured just as easily, but more on that in the next mini-article.
One option is to connect using a sync cable. The option is not very convenient, since there is absolutely no desire to carry a cable with you all the time, and iTunes also does not want to be installed. The second option, the one that is described in this article, is a connection via WiFi. On Habrahabr already mentioned a similar problem and its solution , but for Linux. Our task is to configure the same for Windows.
So what do we have
- Netbook, ASUS 1215B
- Internet via USB 3G-modem
- Player and smartphone with WiFi
Task
- Get on all devices internet
Decision
Before starting, many are advised to update the WiFi card driver on the computer. Personally, I did not do this, but everyone decides for himself.
Ways
- You can use graphical utilities such as Connectify and Virtual Router . They work, they even work well, but they eat resources. Some people complained that they eat resources very much.
- You can do everything yourself through the console using netsh . This is the method I chose. All actions must be performed on behalf of the Administrator.
Create a network
First of all, you need to create a wireless network using the following command
netsh wlan set hostednetwork mode=allow ssid="MyHomeInternet" key="pass12345678" keyUsage=persistent
where MyHomeInternet is the network name (ssid), pass12345678 is the password to enter.
The success of the command will look something like this:
Режим размещенной сети разрешен в службе беспроводной сети.
Идентификатор SSID размещенной сети успешно изменен.
Парольная фраза пользовательского ключа размещенной сети была успешно изменена.
Now you can go to Control Panel \ Network and Sharing Center \ Change adapter settings . I have it called "Wireless Network Connection 2".
Connection management
Since the connection is in the “No connection” status, we need to enable it. To do this, run the command:
netsh wlan start hostednetwork
After receiving the phrase Hosted network is running , the network will be running and in the list of connections we will see your network connection. In our example, this is MyHomeInternet.
To stop the network, you must use the command:
netsh wlan stop hostednetwork
We connect the Internet
A WiFi network has been created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, you must:
- go to Control Panel \ Network and Sharing Center \ Change adapter settings ;
- go into the properties of the connection through which you go online (I have Internet MTS);
- Access tab ;
- check the box next to " Allow other network users to use the Internet connection of this computer " and select from our list our created network - "Wireless Network Connection 2";
- click OK;
- disable and enable 3G connection; (ideally restart the computer)
- disable and enable the WiFi network.
What happened
Ideally, after these actions, the laptop will turn into a small WiFi point. To do this, take the iPod, turn on WiFi and see our created MyHomeInternet network. Enter the password and connect. There is Internet.
Limitations
- First of all, after each Windows startup, you will have to start the network using the netsh wlan start hostednetwork command . It is solved by writing a small script and sending it to startup. Another option is to create a shortcut on the desktop and start the network only when necessary.
- OS must be Windows 7.
- The connected device must support WPA2-PSK / AES
Problems
No network is created
- update the driver of the wireless adapter to a newer one
- run the console as administrator
The network has been created, but does not start
- perhaps restarting the computer and starting the network as administrator will help
The network was created, started, but it is impossible to connect to it
- verify the password
- manually register in the properties of TCP / IP connections on the "server" and the client network settings. For example, for the server: ip - 192.168.137.1, mask - 255.255.255.0 and for the client: ip - 192.168.137.2, mask - 255.255.255.0, gateway - 192.168.137.1, dns - 192.168.137.1
Connected to the network, but can’t get online
- make sure that you have shared it (see paragraph “Connecting the Internet”)
- try to go not by the domain name, but by the IP address. If it goes, it means time to think about entering the DNS server in the client and / or server settings.
Total
As you can see, it is possible to solve such a simple task without using third-party software. Nevertheless, sometimes it happens that you can do without it. In my case, there were problems with DNS and even indicating the Google Public Domain server in the TCP / IP settings, I could not do anything. Therefore, I had to resort to using the BIND package and setting it to 127.0.0.1. It is configured just as easily, but more on that in the next mini-article.