With recent revelations that Visual Studio Code (1.19.0 to 1.19.2) was listening on 9333/tcp exposing a debugging interface with flaws, it's worth learning an editor like ed(1) that doesn't even have network connectivity, let alone listen furtively on exposed ports.
If you want to read from the network, follow the Unix Way: external tools used explicitly
r !nc -Nl 0.0.0.0 31415
The remote machine can then do "echo hello | nc -N ${ED_MACHINE_IP} 31415"