Sunday, September 15, 2013

Listening on a TCP/UDP Port with Netcat

Filled under:

  •  To listen on port 4444 and accept incoming connections,
type: Computer 1 (local computer – 192.168.8.74)
root@bt:~# nc -lvp 4444
                 listening on [any]4444


  • From a different computer connect to port 4444 on your local machine:
Computer 2 (Windows box – 192.168.9.158)

C:\>nc -v 192.168.8.74 4444
192.168.8.74: inverse host lookup failed: h_errno 11004: NO_DATA
(UNKNOWN) [192.168.8.74] 4444 (?) open
HI, HOW ARE YOU!
fine thanks, you?
I’M DOING GREAT!

0 comments:

Post a Comment