creates local host for client to avoid handshake errors