Many times we need to connect two or more computers may be for gaming purposes or public data transfers for that we need a adhoc network i.e. the computer to computer network.
For creating a ad-hoc network simply follow the steps below:
1 Open network and sharing center in you computer.
2.click on set up a new connection or network.
5. give a name to your network, and password if you want.
6. your ad-hoc is ready , and starts waiting for other users to connect.