fixed hash command for tcp connections