A computer that establishes an ad hoc network, and a method performed by
the computer are disclosed. The computer comprises an input device such
as a keyboard or a graphical pointing device having a selector that
generates a signal which indicates that a user has selected an ad hoc
networking function. In one embodiment the computer includes a processor,
coupled to the input device, which receives the signal and causes the
computer to participate in an ad hoc network. The computer can also
include a network interface, coupled to the processor, for communicating
directly with at least one other computer within wireless communications
range of the first computer.