Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

Here is a simple echo server:

sudo socat PIPE TCP-LISTEN:7,fork
share|improve this answer
sudo: socat: command not found – aProgrammer Apr 25 '12 at 12:08
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
share|improve this answer
(with nc.traditional / the one by Hobbit) – Tobu Jan 30 '10 at 22:15
Tobu: Works fine on GNU netcat too. – grawity Jan 31 '10 at 17:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.