parse sockaddr correctly for wget.