Windows – Utility to open TCP port to listen state

firewallportwindows

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 in the listening state.

Best Answer

netcat should do what you want. Have it listen on you machine and echo stuff to STDOUT:

nc -4 -k -l -v localhost 1026

when you want it to close when the connection ends, don't use -k

Related Question