Hi Madhu,
ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection Refused Counter 2
Could you share results for command
niping -c -H <Host Name> -S 3351 or also with niping -c -H < IP > -S 3351.Please refer SAP Note 1341701 - partner 'hostname:service' not reached
Addition to it maintain host file entries as like
127.0.0.1 localhost.localdomain localhost
<IP> <Host Name>
and make sure you maintained entry for port 3351 under /etc/services file of your system.One more thing which i would like to check on system is to completely disability of firewall & SELINUX modes (If on linux) or turn off of any Anti Virus as well as firewall in case of windows.
Hope this will also help you.
Regards,
Gaurav