An ad hoc network is a temporary connection between computers and devices used for a specific purpose, such as sharing documents during a meeting or playing multiple-player computer games. You can also temporarily share an Internet connection with other people on your ad hoc network, so those people don’t have to set up their own Internet connections. Ad hoc networks can only be wireless, so you must have a wireless network adapter installed in your computer to set up or join an ad hoc network.
Open Connect to a Network by clicking the Start button , and then clicking Connect to.
Click Set up a connection or network.
Click Set up an ad hoc (computer-to-computer) network, click Next, and then follow the steps in the wizard.
If one or more of the networked computers is joined to a domain, you need to have a user account on that computer to see and access shared items on it.
If the networked computers are not joined to a domain, but you want to require people to have a user account on your computer for access to shared items, turn on password protected sharing in Network and Sharing Center.
Open Network and Sharing Center by clicking the Start button , clicking Control Panel, clicking Network and Internet, and then clicking Network and Sharing Center.
An ad hoc network is automatically deleted after all users disconnect from the network or when the person who set up the network disconnects and goes out of range of the other users of the network, unless you choose to make it a permanent network when you create it.
If you share your Internet connection, Internet connection sharing (ICS) will be disabled if you disconnect from the ad hoc network, you create a new ad hoc network without disconnecting from the old ad hoc network for which you enabled ICS, or you log off and then log back on (without disconnecting from the ad hoc network).
If you set up an ad hoc network and share your Internet connection, and then someone logs on to the same computer by using Fast User Switching, the Internet connection will still be shared, even if you didn't intend to share it with that person.