This error getting when execute clpplus from client.
[db2inst1@devel ~]$ clpplus db2inst1@localhost:50000/SAMPLE
Enter password:
[jcc][t4][2043][11550][3.57.82] Exception java.net.ConnectException: Error opening socket to server localhost/127.0.0.1 on port 50,000 with message: Connection refused. ERRORCODE=-4499, SQLSTATE=08001
Solution :
1. Change or Add port
vi /etc/service
db2c_db2inst1 50001/tcp # DB2 connections for db2inst1
2. Restart Network
/etc/init.d/network restart
3. type db2 update dbm cfg using SVCENAME 50001
4. db2 force application all
5. db2start

please update your blog.
add the tutorial more.