Virus
Transferring the infected file over the network would do it, but it also depends on the type of virus. Some virues are programed to look for LAN connections and to then transmit themselves to anything connected to that LAN. A good virus will replacate itself as much as possible. A good firewall would help prevent this from happening.