TCPCONNECT(1)
okay bestie, listen up π the header at the top of this page literally says TCPCONNECT(1) and it lives in the General Commands Manual section, but the NAME line down below is out here calling itself tcplisten β yes, fr fr, that's just what it says, I'm not editing the source, I'm just telling you what's on the page π«Ά
β¨ NAME β¨
tcplisten β a general TCP/IP server π¦
πΈ SYNOPSIS πΈ
tcplisten [-irv] [localaddr] port
π DESCRIPTION π
So basically tcplisten just... waits. Patiently. Iconic behavior honestly. It sits there waiting for a TCP/IP connection on port. β
If you hand it a localaddr parameter, it will bind to that IP address specifically. If you don't, no stress β it'll accept connections to any of the local machine's IP addresses. π
Then here's the tea β: data coming in from the client gets printed on standard output, and data read from standard input gets sent to the client. It's giving full duplex main character energy.
When end-of-file is reached on both standard input and the TCP/IP connection, tcplisten terminates. Both. Not one. Both. π
π OPTIONS π
-iβ Terminate at end-of-file on standard input; don't wait for the client to close the connection. β¨-rβ Terminate when the remote client closes the connection; don't wait for end-of-file on standard input. π«-vβ Verbose mode. Prints a message to standard error about the origins (host and port) of the client. π
π¦ SEE ALSO π¦
tcpconnect(1), telnet(1), mini-inetd(1), tcpbug(1).
go read those too, they're the friend group π
π BUGS π
The names of the options are not yet finalized, and may change at a future release. so like... don't get attached to-i,-rand-vokay?? they could rebrand at any moment π
and that's the whole page bestie, no cap, you're basically a TCP/IP server whisperer now π
this little love letter is from 1997 April 13 β yeah she's a 90s baby and she ate πβ¨
π¦ where this page comes from
- debian bookworm: tcputils 0.6.2-10+b1
- debian trixie: tcputils 0.6.2+git20120127.c28952d-0.1 Β· Public_domain
- fedora 43: tcputils 0.6.2-36.fc43 Β· LicenseRef-Callaway-Public-Domain
- fedora 44: tcputils 0.6.2-36.fc43 Β· LicenseRef-Callaway-Public-Domain
- ubuntu jammy: tcputils 0.6.2-10build1
- ubuntu noble: tcputils 0.6.2-10build1
- ubuntu questing: tcputils 0.6.2+git20120127.c28952d-0.1
- ubuntu resolute: tcputils 0.6.2+git20120127.c28952d-0.1build1 Β· Public_domain
- ubuntu stonking: tcputils 0.6.2+git20120127.c28952d-0.1build1 Β· Public_domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms