Hi List, Andreas, Dan! Thank you your answers. The "gcc -O2 check_icmp.c -o check_icmp -lnsl -lsocket" command compiles check_icmp successfully. Now it works!! Thank you again! Bye, Tamas!