So to read and write to a socket:
Write to a socket:
echo "hello" > /dev/tcp/192.168.0.144/27002
Read from socket:
netcat -p 27002 -l
BUT... I would like to read a socket using "cat" and not have to use something else like netcat: ?
cat: /dev/tcp/192.168.0.144/27002: No such file or directory
Tried and hangs:
cat < /dev/tcp/192.168.0.144/27002
How to use "cat" to read from a socket or port?