2

When I use nc to test a port as followed, it prints out a result with '(?)' in it. I've looked up the man page and also online but I can't find an answer. Can someone please shed some lights? Thanks.

# nc -v -u -w 3 localhost 10003
localhost [127.0.0.1] 10003 (?) open

I have netcat-traditional 1.10-41.1

Michael Hampton
  • 252,907
skwokie
  • 195

1 Answers1

3

Thanks to Michael for the point-out. It was the traditional flavor. I just installed the openbsd flavor and it prints the result properly now:

# nc -v -u -w 3 localhost 10000
Connection to localhost 10000 port [udp/*] succeeded!
skwokie
  • 195