Is there some basic utility to open a specific network TCP port on my machine?
I need to test how my program deals with ports on listening state..
|
|
netcat should do what you want. Have it listen on you machine and echo stuff to STDOUT:
when you want it to close when the connection ends, don't use -k |
|||||||||||||||||||||
|
|
You have TCP Listen: http://www.allscoop.com/tcp-listen.php Port Peeker: http://www.linklogger.com/portpeeker.htm Microsoft's Command-line utility Portqry.exe |
|||||
|
|
Try iperf, there is a version for Windows. You can just run it like
You would need to obtain |
||||
|
|
|
Looks like this utility will do exactly what you want, even displaying the received data if you like: http://www.drk.com.ar/builder.php It has a GUI rather than just a command line, an advantage for some. |
|||
|
|
|
This is the perfect use for Wireshark, a packet and protocol analyzer which sits in-between the Windows/Linux networking stack. It will allow you to view all TCP/UDP packets that are received by your entire machine, regardless of the port. You can also tell the program to filter out only packets sent across a certain port for further analysis. The advantage to Wireshark is that it provides very detailed messages for each packet - source, destination, port, MAC addresses, data, dates, checksums, etc. Very useful (and free!) tool. |
|||||||||
|
|
The netpipes tools faucet and hose have always served me well, simplifying Similar to netcat. Ubuntu description:
|
|||||||||
|
|
|
|||||
|
|
TCPView from sysinternals toolkit provides very nice overview |
|||||||||
|