Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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 –  Amit Apr 25 '12 at 12:08
add comment
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
add comment

Your Answer

 
discard

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.