-
Quick and dirty file transfer with netcat and a browser.
I use this to transfer files sometimes in a pinch.
It uses the tool netcat which is nc on the command line.
To create a simple single file server:
nc -l -p 1234 < file
This example listens on port 1234 on knoppix, and when
you connect to that port in a browser from another machine, the contents of the file named 'file' are sent to the client.
Here is an example of when I used it to get an excel file.
I went to the directory where the file exists, and typed in:
nc -l -p 1234 < 10.xls
then i go to my browser on the other machine
http://<knoppix-box-ip>:1234
then i let it load (it looked garbled, but thats what the actual text of an excel file looks like if you were to cat it) and I think you have to hit stop after you see it's done.
I then go to file and save, and save it as 10.xls.
I can then open it in excel on the client computer.
I know there are about 1000 different ways I could have grabbed that file, and I can't promise that it will work in your situation, but this is tips & tricks and I think it's a cool trick.
Here are some more netcat tips and tricks.
http://is-it-true.org/pt/ptips21.shtml
Enjoy!
Similar Threads
-
By astump in forum Networking
Replies: 1
Last Post: 03-19-2005, 01:34 AM
-
By Level7 in forum Networking
Replies: 2
Last Post: 10-14-2004, 02:34 PM
-
By yonatan in forum General Support
Replies: 2
Last Post: 09-26-2004, 04:54 PM
-
By Liquidant in forum General Support
Replies: 2
Last Post: 05-26-2004, 06:34 PM
-
By twgray in forum Hdd Install / Debian / Apt
Replies: 8
Last Post: 06-01-2003, 11:08 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire
$36.99
ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs
$179.99
ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID
$55.45
Dell PERC V10 Z0017A SAS-SATA RAID Controller Card No Bracket N4C2D 5R10N
$52.97
LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault
$39.00
Inspur LSI YZCA-00424-101 Raid Card 12Gbps HBA Controller Low Profile 9300-8i IT
$15.98
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 04Y5H1 High Profile
$13.99
DELL PERC H310 RAID Controller with Cables, OHV52W, 6Gb/s SAS SATA PCIe x8
$19.95
Dell 44GNF PERC H730 PCIe 3.0 x8 1GB Cache RAID Controller w/ Batt 27-3
$34.99
Dell KMCCD PERC H730 MINI MONO 1GB RAID CONTROLLER W/Battery
$26.99