NCHK-2849: Use the hostname when connecting the socket
Merge pull request #386 from IDPF/p/apond/cr/nchk-2849

NCHK-2849: Use the hostname when connecting the socket