Question: how to connect two laptops using wifi in windows 8.1?
Answer: On the next dialog, click on the Setup a new connection or network link towards the bottom.
In the new connection dialog, scroll down till you see the Setup a wireless ad hoc (computer-to-computer) network option.