Jbad26
Jbad26

Reputation: 324

Getting IP address and Port from UDP Packet

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

Answers (1)

Nikolai Fetissov
Nikolai Fetissov

Reputation: 84151

Use the -v or -vv for verbose logging, that will tell you client IP and port.

Upvotes: 9

Related Questions