You can configure your Windows 7 laptop as a WIFI access point.
right-click the Cmd.exe link and select Run as Administrator.
Now enter the following command:
netsh wlan set hostednetwork mode=allow ssid=MyNet key=MyPassword
and press [Enter]. Replace “MyNet” with the name you want to use for your network, and “MyPassword” with a password that is a little more difficult to guess.
Still at the command prompt, type
netsh wlan start hostednetwork
and press [Enter] to start the virtual adapter.
Now click "Control Panel"> "Network and Internet"> "Network and Sharing Center"> "Change adapter settings", right-click your Internet connection and select "Properties". Go to the "Sharing" tab, check the box "Allow other network users to connect ...", select your virtual Wi-Fi adapter.
From here you can see the Wi-Fi hotspot on your Android device. Once connected, you should be able to follow the usual debugging methods used on the same network.
Just like the added extra, I'm sure you know this, but for those who are looking for this, it can also help wirelessly debug your Android device.
When debugging locally (and not on android), it's enough to just use the localhost: port address. However, when you use your Android (or other devices, such as UIWebView on iOS), you cannot access this address, therefore, to get around this, you can configure your ip as an address, but there are a few steps that you must take it first.
Make sure you have the latest IIS setting installed, first get your ip (cmd.exe> ipconfig) In this example, I will use 192.168.1.42 as my ip number and 58938 as the port number.
- Add
<binding protocol="http" bindingInformation="*:58938:192.168.1.42" /> to applicationhost.config after binding for 'localhost'. - Run
netsh http add urlacl url=http://192.168.1.42:58938/ user=everyone - Run
netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=58938 profile=private remoteip=localsubnet action=allow
Source: Johan Drissen