You can access TCP ports at /dev/tcp/host/port

/dev/tcp/host/port
If host is a valid hostname or Internet address, and port is an integer port number
or service name, bash attempts to open a TCP connection to the corresponding socket.

https://www.linuxjournal.com/content/more-using-bashs-built-devtcp-file-tcpip