Setup A Wifi Router using a Laptop Running Windows 7
May 23, 2016
Posted by on
In work, I need to connect to LAN using Windows OS (running some CISCO NAC software). However, all developers are using Linux laptops. Running virtual machines in Linux with Windows 7 OS, failed to connect to the LAN with the CISCO NAC software. So I tried to set up a Windows 7 laptop which can connect to the LAN (with this CISCO NAC software), and turn the laptop wifi into hosted mode, so that all Linux laptop can connect to it and use the LAN interface to access the network. Initially, I set up the ad-hoc network, but no machines (linux and windows) can connect to it. Android cannot even see it. Then I read about the the windows miniport setup, which is able to turn the laptop wifi into an access point with hosted mode instead of just an ad-hoc network. This is great for it should work with all laptops as well as android phones. This is how to do it:
Step 1: Press start and type cmd and right click on it click on “Run as Administrator”
Step 2: Type
netsh wlan stop hostednetwork and press enter.
Step 3: Type
netsh wlan set hostednetwork mode=allow ssid=NAME key=PASSWORD keyUsage=persistent and press enter.
Step 4: Type
netsh wlan start hostednetwork and press enter.
That’s it! You can now scan the network with laptop or android phones and connect to it. To share the network, modify the properties of the LAN interface to allow internet sharing through the newly created miniport adapter.
Details explanation can be found here: http://forum.xda-developers.com/galaxy-s2/general/guide-alternate-to-ad-hoc-wi-fi-network-t1924911
In one of the setup, the network is created, devices are able to connect to the network but IP addresses cannot be obtained (stuck at obtaining IP addresses…). To fix it, modify the miniport adapter properties by removing all ticks except the TCP/IPv4. Then, repeat step 1 to step 4.
More posts here: http://superuser.com/questions/339448/windows-7-hosted-network and here: http://mintywhite.com/windows-7/set-windows-7-wifi-hotspot-quick-tip/