Archive | May 2014

Creating a Windows 8 WiFi hotspot

Windows 8 supports ad hoc networks and WiFi sharing, but not through a GUI interface.  To setup the WiFi adapter on a Windows 8 system to act as a hotspot:

  1. Open an administrative command prompt (Administrator: cmd) via the Win + X shortcut.  You can also type cmd on the Start Screen, right-click and select Run as administrator.
  2. Confirm the WiFi NIC supports virtualization.  Run: netsh wlan show drivers.  The “Hosted network supported : Yes” should be listed.
  3. If it says No then try updating the adapter driver.
  4. Configure an ad hoc connection: netsh wlan set hostednetwork mode=allow ssid=<ad hoc network name> key=<password>.  This sets up a WPA2 PSK network.
  5. Start the network: netsh wlan start hostednetwork
  6. If step 5 fails with a hosted network couldn’t be started and a message about not being in the correct state, go into the Device Manager, and find the Microsoft  virtual NIC under Network adapters.  Disable it, then re-enable it.
  7. Open up the Network Connections and right click on the connection with Internet connectivity.  That’s probably “Local Area Connection”.  Select the Sharing tab, and enable Allow other network users to connect through this computer’s Internet connection.  For the Home networking connection, select the virtual NIC setup by the ad hoc network.  That’s probably something like Local Area Connection*32.  Don’t select the Allow other network users to control or disable the shared Internet connection.
  8. If using something like WireShark for capturing network traffic, select the virtual NIC for the capture interface.  There’s no need to run in Promiscuous mode, and that isn’t well tolerated under Windows 8 anyway.
  9. The ad hoc network will have an adapter IP of  It’s best to make the devices using the hotspot have fixed IPs and then specify192.168.137.1 as the gateway address.  Not specifying IPs results in DHCP, but I’ve never seen the ad hoc gateway successfully act as a DHCP server.  In that case, APIPA kicks in and the hotspot clients have to specify the gateway’s APIPA IP.  Messing with the ICS service under Windows 8 didn’t seem to help the situation.

Changing the boot order in a dual-boot configuration

The default entry for booting in a dual-boot Ubuntu 14.04 and Windows configuration is the first entry in the list.  The dual-boot configuration uses Grub2 for the boot manager.  The settings are under /etc/default and not Grub’s /boot/grub location.  While there are GUI ways to update the order (Grub-Customizer from the Software Center), people have had mixed results with it.  It is easy to go the text file route to change the order.

  1. sudo vi /etc/default/grub
  2. find the GRUB_DEFAULT=0 line and change 0 to 5.  The 5 corresponds to the zero based entry on the boot menu
  3. save the file
  4. run sudo update-grub

If you put an entry in for the index that’s invalid, then the boot loader will use 0 instead.