please provide the related information how to set up a connection in linux between two pc's through serial port and to transfer a file.
Look up SLIP (Serial Line Interface Protocol).