I set up nc on some computers in my office. They're connecting to our server like so:
nc 192.168.1.2 3291 -e cmd
Does anyone know how to list incoming connection attempts rather than accept one? Not:
nc -l 192.168.1.2 3291
EDIT: Listing part solved, using tcpdump. Remaining part of question:
How to accept a connection in nc from a specific host only? i.e., 192.168.1.6
, 192.168.1.7
, and 192.168.1.8
are all asking to connect, and we only want to talk to 192.168.1.7
. Is there any way to do this with nc?