” Ad Hoc ” is actually a Latin word meaning “for this work “. They are often used to describe solutions that have been developed to perform an assigned task.
In computer networking , an ad hoc network refer to a network connection that is made for a single session and does not require any router or wireless base station .
For example, if you have to transfer a file to your friend’s laptop , then you have to create an ad hoc network to transfer the file between your computer and its laptop.
To do this, an Ethernet crossover cable , or a computer’s wireless cards can be used to communicate between them. At the same time, if you have to share files between more than one computer , then in such a situation you will have to set up a mutli-hop ad hoc network , which can transfer data through multiple nodes.
Basically, an ad hoc network is basically a temporary network connection that is created for a specific purpose (such as transferring data from one computer to another). Whereas if a network is set up for a long time, then it is only a plain local area network ( LAN ).