How to transfer files from one laptop to another laptop using LAN cable

If we have two laptops at our home or office and want to transfer the files from one laptop to another laptop. we can use the pen drive for this purpose, but we need to insert the pen drive into first laptop then copy all the data after that we need to insert the pen drive into...