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?

Ritwik Bose
  • 203
  • 1
  • 3
  • 7

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
user1686
  • 10,162
  • 1
  • 26
  • 42
1

Here is a simple echo server:

sudo socat PIPE TCP-LISTEN:7,fork
Tobu
  • 4,437
  • 1
  • 24
  • 31