From bash(1) manpage:
Bash handles several filenames specially when they are used in
redirections, as described in the following table
...
/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 the corresponding TCP socket.
/dev/udp/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 the corresponding UDP socket.
AFAICT, zsh does not support this form of redirection.
--
Lew Pitcher
"In Skills, We Trust"