SERVER:
1- Go to Control Panel then Network Connections
2- Right Click on your
Wireless Connection and choose "Properties"
3- Click on the "Wireless Networks" tab and clear
every "Preferred Networks" to avoid complicity
4- Click on "Advanced" Button and then choose
"Computer-to-Computer (Ad-hoc) networks only" and unset the
"Automatically connect to non-preferred networks"
5- Click on "Add", Choose a name for your Ad-Hoc
network and disable the "Data Encryption"
Now we're done with the Ad-hoc thingies. Let's share the LAN connection. Here are the steps:
1- Go
to Control Panel then Network Connections
2- Right Click on your LAN Connection then choose
"Properties"
3- Click on the "Advanced" tab above.
4- Check the "Allow other network users to connect
through this computer's internet connection"
5- Choose your Wireless Drive
Now we're done from the server's side. The pictures below would explain incase you got lost or something:




NOTES:
1- You can set WEP\WPA Encryption if you want. I'm
only explaining the least things you need to do to set a wireless
connection between 2 computers
2- You can change the SSID to whatever you want.
I'm just "Q8GEEKS.ORG" because I'm writing a tutorial in my website