Tcp: fixed the getaddrinfo call