📜 ⬆️ ⬇️

We switch WiFi to access point mode in Windows

It so happened that at work to get a full Internet without restrictions, I have to use a netbook and a 3g modem. Having recently bought an iPod Touch, I really wanted to connect it to the Internet. If the smartphone could still get out on the Internet by itself, then with a 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 around with you the cable all the time, and you don’t want to install iTunes either. The second option, the one that is described in this article, is a connection via WiFi. Habrahabr has already mentioned a similar task and its solution , but for Linux. Our task is to configure the same for Windows.

So what we have


- Netbook, ASUS 1215B
- Internet via USB 3G-modem
- Player and smartphone with WiFi
')

Task


- Get Internet on all devices


Decision


Before you begin, many advise you to update your wifi card driver on your 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 were eating a lot of resources.

- You can do everything yourself through the console using netsh . This is the way 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 login password.

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 control

Since the connection is in the status of "No connection", we need to enable it. To do this, run the command:
 netsh wlan start hostednetwork 

After receiving the phrase the Hosted network is started , the network will be started and in the list of connections we will see the connection of your network. In our example, this is MyHomeInternet.

To stop the network, you need to use the command:
 netsh wlan stop hostednetwork 


We connect the Internet

WiFi network is created and you can even connect to it, but the Internet will most likely be absent. In order to correct this misunderstanding, it is necessary:
- go to Control Panel \ Network and Sharing Center \ Change adapter settings ;
- go to the properties of the connection through which you access the Internet (I have Internet MTS);
- Access tab;
- check the box " Allow other network users to use the Internet connection of this computer " and select our created network - "Wireless network connection 2" from the list;
- click OK;
- disable and enable the 3g connection; (ideally reboot)
- 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 newly created network MyHomeInternet. Enter the password and connect. The Internet is.

Restrictions


- first of all it is necessary to start the network after each Windows launch using the netsh wlan start hostednetwork command . It is solved by writing a small script and sending it to autoload. Another option is to create a shortcut on the desktop and start the network only when necessary.
- The OS must be Windows 7.
- the connected device must support WPA2-PSK / AES

Problems


No network is created

- update the wireless adapter driver to a newer one
- run the console as an administrator

Network has been created, but does not start

- may help restart the computer and start the network as an administrator

The network has been created, launched, but it is impossible to connect to it.

- check password
- manually register in the TCP / IP properties of the connection 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 the Internet does not go

- make sure that you share it (see "Connecting the Internet")
- Try to go not by the domain name, but by IP-address. If it passes, then it’s time to think about writing the DNS server into the client and / or server settings.

Total

As you can see, this simple task can be solved without using third-party software. Nevertheless, sometimes it happens that without it you will not have to go. 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 as easy, but this is already in the next mini-article.

Source: https://habr.com/ru/post/130271/


All Articles