Open TCP port in Windows 7 and read incoming data, what program to use?

1

I have an external device which can connect over GPRS to the Internet using a SIM card and I want to see what data it sends. I can program it to use my computer as a server and then use a program to read what it sends. The problem is that I don't know what program to use to read the incoming data. Any ideas?

Device on the Internet > My home router > Port forwarding > My computer I tried Windows 7 Telnet Server but I can't read what is coming.

MerNion

Posted 2013-06-15T10:44:26.267

Reputation: 25

Wireshark may be what you're looking for. – gronostaj – 2013-06-15T11:37:56.047

Answers

3

I think Wireshark is the most common tool for inspecting network traffic. It would also allow filtering data from a specific port.

kluka

Posted 2013-06-15T10:44:26.267

Reputation: 1 924

1

If you know that it connects to a particular port (or you can tell it to), netcat might be the simplest way to capture the data going to that port, and none other.

nc -l -pport_number  >output_file_name

The -l option puts netcat into listen (i.e., server) mode; without it; netcat acts much like telnet client.

Resources:

Note: On some versions of netcat, -l implies -p, so you should say just -l and then the port number.

Scott

Posted 2013-06-15T10:44:26.267

Reputation: 17 653

0

You could try TCPView (a free utility from Microsoft from their takeover of Sysinternals). It's a GUI-based interface so you should get up and running relatively quickly.

misterjaytee

Posted 2013-06-15T10:44:26.267

Reputation: 1 763