Ask Your Question

nmap question: who has the port open?

asked 2018-03-01 17:49:12 +0000

toddandmargo gravatar image

Hi All,

Is there a way to get nmap to tell me who (IP) has port 6566 open?

$ nmap -p 6566

Starting Nmap 7.60 ( https://nmap.org ) at 2018-02-27 00:39 PST
Nmap scan report for rn6.foo.local (
Host is up (0.00010s latency).

6566/tcp open  sane-port

Nmap done: 256 IP addresses (1 host up) scanned in 2.79 seconds

Many thanks, -T

edit retag flag offensive close merge delete



Well, it is already there rn6.foo.local ( If you just want to have the IP address returned, just add the -n option to nmap: nmap -n -p 6566

thomaswood ( 2018-03-01 17:54:27 +0000 )edit

My misunderstanding. I thought the .10 was the address of the sender, not the return reply.

toddandmargo ( 2018-03-01 17:59:25 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-03-13 08:43:56 +0000

No IP has it open. When a port is open, it means that a process is listening to it on the target system. It doesn't mean that something is actually connected to the port. BTW, for such information, you should use netstat not nmap.

edit flag offensive delete link more


netstat gives way too much information and it does not tell me what I want to know:

$ netstat | grep 6566

nmap does:

$ nmap -p 6566

Starting Nmap 7.60 ( https://nmap.org ) at 2018-03-13 03:47 PDT
Nmap scan report for
Host is up (0.000093s latency).

6566/tcp open  sane-port

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
toddandmargo ( 2018-03-13 10:48:38 +0000 )edit

What do you want to know?! If you want to know who is listening on ports on your machine, both nmap & netstat can tell you. But for netstat, you should use -l option.

But if you want to know if anybody is connected to the port, netstat is telling you: nobody. nmap doesn't tell you if anybody is connected to the port or not. It is just telling you that someone is listening to the port.

hedayat ( 2018-03-17 12:29:41 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2018-03-01 17:49:12 +0000

Seen: 58 times

Last updated: Mar 13