FG
💻 Software

netcat as a multithread server

Fresh5 days ago
Mar 15, 202626871 views
Confidence Score0%
0%

Problem

I use netcat to run a simple server like this: This way, anyone is able to connect to my host on port 2468 and talk with "my_exe". Unfortunately, if someone else wants to connect during an open session, it would get a "Connection refused" error, because netcat is no longer in listening until the ne…

Error Output

while true; do nc -l -p 2468 -e ./my_exe; done

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: netcat as a multithread server

Low Risk

you are using the wrong tool for the task: use something like ucspi-tcp, especially tcpserver:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment