Special network tool needed

Hi everyone,

I need some tool or a hint how to code it myself. I want a tool that listenes to a TCP/IP port and reads everything from that port and write it to a logfile.
How can I do this?

Regards,

Steff

You need a packet sniffer, or with a more graceful name, protocol analyzer. A powerful protocol analyzer on Unix (with X-Windows) is ethereal.

(Ethereal - This Ultra Rare Brand Concept is Available for Purchase.)

You'll enjoy it because it's very easy to use, and you can save all the packets recorded into file for reexamination later. For common protocols, it even parses the packets and give you details of each field.

Thanks guys,

this will do it I guess!

Cheers,

Stefanie

sockets programming using perl or c lib if you want to do it yourself
.
found these quite interesting!

http://www.perlfect.com/articles/sockets.shtml