tags:

views:

45

answers:

1

Hi all:

Seeing following output to netstat, what do (1)*:*, (2)*:8102, (3)*:ibm-db2 indicate respectively?

Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 *:8102                      *:*                         LISTEN 
tcp        0      0 *:ibm-db2                   *:*                         LISTEN

Thanks a lot.

+1  A: 

This means that an application on your computer is listening on TCP ports 8102 and (I think) 446 or 523, which is the default port for IBM DB2 servers. Listening on a port allows the application to receive connections from other computers over the network.

The Foreign Address column indicates the IP address of who you're connected to. Right now, it appears that you are not connected to anyone which is why *.* appears.

Dumb Guy
so ibm-db2 here represents a number?
Ricky
Yes, the database of known services can be queried with `getent services ibm-db2`
ephemient
where does the mapping (maybe in a config file) between ibm-db2 and the port #?
Ricky
On linux, it should be located in `/etc/services` I believe
Dumb Guy
It may be elsewhere if so configured in `/etc/nsswitch.conf` -- you should use `getent` to access the `services` database (and other similar databases).
ephemient