TCPCONNECT(1)
π tcpconnect β the general TCP/IP client bestie π
okay so this is a page from the General Commands Manual, and it's all about tcpconnect(1) β literally the most "I just wanna talk to a server" energy you can get from a command line. no cap.
β¨ NAME β¨
tcpconnect β general TCP/IP client π«Ά
πΈ SYNOPSIS πΈ
tcpconnect [-irv] [-l localaddr] host port
that's it. that's the whole vibe. four lil flags and two args and you're connected. iconic.
π¦ DESCRIPTION π¦
so basically tcpconnect makes a TCP/IP connection to a server that's running on the machine host, and that server is listening on port. simple as that. π
then here's the main character energy: it reads your standard input and sends all of that over to the remote server, and anything the server sends back? that gets printed to standard output. it's giving walkie-talkie. it's giving conversation. π¬
and when end-of-file is reached on both standard input and the TCP/IP connection, tcpconnect terminates. both. like, it waits for both sides to be done. no ghosting early. π
π OPTIONS π
-iβ Terminate at end-of-file on standard input. like, don't wait around for the server to close the connection, bestie, we're done here. π-rβ Terminate when the remote server closes the connection. this one says don't wait for end-of-file on standard input. the server hung up, so we hang up. periodt. βοΈ-vβ Verbose mode. Prints a message to standard error when the connection has been established. so you get the lil "it worked!!" confirmation. validation. we love that. β¨-l addr:portβ Bind the local end-point of the connection to IP addressaddr, TCP portport. and here's the cute part: either the IP address or the port, but not both, may be left out β and that means the operating system gets to choose that part by itself. letting the OS pick your fit for you. π
π SEE ALSO π
tcplisten(1), telnet(1), tcpbug(1).
go read those too, they're part of the family. π«Ά
π BUGS π
okay so real talk: the names of the options are not yet finalized, and may change at a future release. so likeβ¦ don't get too attached to-i,-r,-v,-l. they might glow up into different letters. π
and that's the whole page, bestie!! this manual page is from 1997 April 13 β the source being the General Commands Manual β so it's lowkey vintage, highkey still slaps. go open a socket. you got this. πβ¨π¦
π¦ 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