I simply open an http server from my terminal (with node) listening on port 3000, which is obviously working if I request localhost:3000 in a browser.
Now, I want to see this connection so I use netstat.
I'm supposed to see server connection on port 3000, and client connection on another port:
$ netstat -p tcp Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp6 0 0 localhost.hbci localhost.50215 ESTABLISHED tcp6 0 0 localhost.50215 localhost.hbci ESTABLISHED tcp6 0 0 localhost.hbci localhost.50214 ESTABLISHED tcp6 0 0 localhost.50214 localhost.hbci ESTABLISHED tcp6 0 0 localhost.hbci localhost.50213 ESTABLISHED tcp6 0 0 localhost.50213 localhost.hbci ESTABLISHED tcp6 0 0 localhost.hbci localhost.50211 ESTABLISHED tcp6 0 0 localhost.hbci localhost.50212 ESTABLISHED tcp6 0 0 localhost.50212 localhost.hbci ESTABLISHED tcp6 0 0 localhost.50211 localhost.hbci ESTABLISHED tcp6 0 0 localhost.hbci localhost.50210 ESTABLISHED tcp6 0 0 localhost.50210 localhost.hbci ESTABLISHED No entries about the server connection on port 3000. But the localhost.hbci, switching from a local to a foreign address, seems to be my server connection. And if I type:
$ lsof -i TCP:3000 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME node 1144 garysounigo 11u IPv6 0x6d9a12e1e288efc7 0t0 TCP *:hbci (LISTEN) I'm sure that hbci represent my port 3000.
Does anyone know something about what hbci means or refers to?
Is it a port for local server ? A protocol for s local connection?
I find anythings everywhere ( on any port.. ;) )
netstatby default does not display TCP (including TCP6) sockets in LISTEN state; to see them add-ato any version, or-l(ell) to the version usually used on Linux as your tags say but I believe not OSX as your text says. (lsofdoes include LISTEN, as you see.)