title: How to identify DB2 port number
body: <p>I have to make DB2 connection in java using port number.
  Is there any command in DB2 or any way that can get the DB2 port number?</p>
  
  <p>I have not used the default port 50000 while making DB2 connection as this port can be changed during DB2 installation.
  Please suggest any DB2 command or any other alternative.</p>