Reputation: 324
I have a server set-up with netcat:
nc -l 4444 -u
And a client:
nc 127.0.0.1 4444 -u
I am using localhost because they are both on my computer, but if the client moves to another computer, is there a way for netcat to tell me the ip address and port number of the client?
Upvotes: 11
Views: 8255
Reputation: 84151
Use the -v
or -vv
for verbose logging, that will tell you client IP and port.
Upvotes: 9