adds local host on socket connect