An alternative way to accomplish this without using the android device to create the hotspot connection (e.g for battery issues etc) is to use the Windows PC as the source of connection.
To accomplish this you have to host the WiFi connection in Windows (Note: Windows has a built in feature to create Infrastructure mode WLAN connection.
Simply run command prompt as admin and enter the following commmands:
netsh wlan set hostednetwork mode=allow ssid=xxxxx key=yyyyy
where xxxxx is user defined SSID and yyyyy is user defined password
- Start the connection by entering:
netsh wlan start hostednetwork
Then simply connect your android phone to the newly created network
- To show status of connection enter:
netsh wlan show hostednetwork
and will get a window like this:
C:\Windows\System32>netsh wlan show hostednetwork
Hosted network settings
Mode : Allowed
SSID name : "test"
Max number of clients : 20
Authentication : WPA2-Personal
Cipher : CCMP
Hosted network status
Status : Started
BSSID : xx:xx:xx:xx:xx:xx
Radio type : 802.11n
Channel : 11
Number of clients : 0
- To stop connection hit:
netsh wlan stop hostednetwork
Additionally may need to set up static IP address as follows:
- Open View network connections from the Windows Start menu.
- Open Properties on the Wireless Network Connection.
- Select Internet Protocol Version 4 (TCP/IP) and then click Properties.
- Manually set the IP address to
192.168.137.1
.
- Manually set the Subnet mask to
255.255.255.0
.
- Manually set the Preferred DNS server to
192.168.137.1
.
Alternatively, you can achieve this with third party software like Connectify
Although paid,it also comes as a free version. It has the capabilility to create an hotpot in infrastructure mode rather than ad-hoc, hence visible to android devices.
You may want to configure the hotspot for local access like so:

- After this, allow your android device to connect to the newly created connection.
Although old a post this is,its just a reference point for users with similar needs to the question:)