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
  • 193
  • 1
  • 2
  • 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
  • 8,717
  • 25
  • 38
1

Here is a simple echo server:

sudo socat PIPE TCP-LISTEN:7,fork
Tobu
  • 4,367
  • 1
  • 23
  • 31