Can't connect to the DB2 database on localhost, using DBeaver 3.1.1
First make sure db2 is started: 

#&gt; db2 connect to &lt;db&gt;


If that's not ok, use db2start. Next what port is db2 listening to?

#&gt; cat /etc/services | grep db2


If it's not 50000 change your connections string in DBeaver. Next try to telnet to the port (assuming it is 50000):

#&gt; telnet localhost 50000


If that's fine (saying something like Escape charater is ^]), check if DB2COMM is set:

#&gt; db2set | grep DB2COMM


It should say DB2COMM=TCPIP

Is it a firewall issue? Check with:

#&gt; sudo iptables -L