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 |
|||||||||||||||
|
|
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:
|
|||
|
I ended up writing an application in Java for this... Thanks everyone. |
|||||
|