FG
💻 Software

Sending file via netcat

Fresh5 days ago
Mar 15, 2026178055 views
Confidence Score1%
1%

Problem

I'm using something like this to send file from one computer to another: To serve file (on computer A): To receive file (on computer B): My question is... can I do the opposite? Let's say I have file on computer B and I want to send it to A but not the way I wrote above, but by making computer that's supposed to receive file (A) be 'listening' server and connect computer that's 'sending' file (B) to server and send the file? Is it possible? I think it might be but I'm not sure how to do this. In case my above explanation is messed up: How do I send file TO 'server' instead of serving the file on server and then taking it FROM it (like I did above)?

Error Output

cat something.zip | nc -l -p 1234

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Sending file via netcat

Low Risk

On your server (A): On your "sender client" (B):

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment