Monday, March 08, 2010

Create Wireless Hosted Networks in Windows 7

This new feature, wireless Hosted Network, is introduced by Microsoft in Windows 7 and Windows Server 2008 R2.

The wireless Hosted Network feature uses the VirtualWiFi technology along with a software-based virtual access point (Virtual AP) feature. It allows the creation of wireless AP with a supported Wi-Fi adapter and driver, while also having the ability to connect to another wireless network. It also includes a DHCP server, so users automatically receive an IP address.

Pre-requisites:
  • Supported WiFi adapter
  • Using certified WiFi drivers for Windows 7. 
You can check this by looing at the network connection (detail mode). You should see an adapter called Wireless Network Connection that using Microsoft Virtual WiFi Miniport Adapter.

Follow the steps below:
  • Start "cmd" in "Administrator mode".
  • To create the hosted network:
netsh wlan set hostednetwork mode=allow ssid=[Your-AP-Network]  key=[Your-WPA2-PSK-AES-Password]
  • Replace the SSID and key placeholders with your desired network name and WPA2-PSK encryption key. Note that Microsoft requires all wireless Hosted Networks to use WPA2-PSK (AES) encryption. 
  • Optional. If you want to allow Internet access for other users, enable ICS. See how to enable ICS here if it is disabled.
  • To start/enable the Hosted Network:
netsh wlan start hostednetwork
  • Optional. To manually turn the Hosted Network off, enter the following:
netsh wlan stop hostednetwork
  • Optional. To see the Hosted Network details (see Figure 3), including the MAC addresses of connected users, enter the following:
netsh wlan show hostednetwork
  • Optional. To change the WPA2-PSK key, you can enter the following:
netsh wlan refresh hostednetwork [New-WPA2-PSK-AES-Password]
Now others should see the Hosted Network appear in their list of available wireless networks. They can connect like normal and enter the encryption key when prompted.

Keep in mind that wireless Hosted Networks do not automatically restart after the computer resumes from sleep, hibernate, or restarts. However, if used, a third-party, such as Connectify, utility might initiate a reconnection.

Wednesday, March 03, 2010

Install Loopback Adapter in Windows 7

The Microsoft Loopback adapter is a testing tool for a virtual network environment where network access is not available. You can bind network clients, protocols, and other network configuration items to the Loopback adapter, and you can install the network adapter driver or network adapter later while retaining the network configuration information.

To install a Microsoft Loopback adapter in WIndows 7:

  • Start "cmd" in "Administrator mode”
  • From the command prompt, run “hdwwiz.exe“. This should launch the “Add Hardware Wizard“. Click Next.
  • Select “Install the hardware that I manually select from a list (Advanced)” and click Next.
  • Now from the list select Network Adapters and click Next.
  • Under Manufacturers, select Microsoft and select “Microsoft Loopback Adapter” under Network Adapter and click Next. This should start the installation. 
  • Click Finish when the installation completes.


To confirm the loopback adapter installed, right-click Computer, select properties. Click Device Manager and expand Network Adapters and you can see the Loopback adapter installed there.

Tuesday, March 02, 2010

Enable ICS in Windows 7

To enable ICS, navigate through the Control Panel or Network and Sharing Center to bring up the Network Connections window.

Then right-click the network adapter that’s connected to the Internet and select Properties. Then select the Sharing tab, check the Allow other network users to connect through this computer’s Internet connection, choose the Hosted Network Connection from the drop-down listbox, and click OK.

Sometimes, at the Properties's Sharing tab (of the network adapter), it says "Internet Connection Sharing has been disabled by the Network Administrator". To enable ICS, you will have to do the following:

  • Start "gpedit.msc"
  • Browse to "Computer Configuration\Administrative Templates\Network\Network Connections"
  • Set to Disable for "Prohibit use of Internet Connection Sharing on your DNS domain network".
  • Set to Disable for "Prohibit installation and configuration of Network Bridge on your DNS domain network"