4

I'm writing a simple client to ping a server with a packet on port 7 (echo) and then waiting for a reply. Is there a server that I can use to test this?

2 Answers2

3
sudo nc -vvlp 7 -e /bin/cat

If you happen to have a inetd installed, most of them have echo built-in. Snippet from /etc/inetd.conf:

echo   stream  tcp nowait  nobody  internal
echo    dgram   udp wait    nobody  internal
grawity
  • 17,092
1

Here is a simple echo server:

sudo socat PIPE TCP-LISTEN:7,fork
Tobu
  • 4,495