Added socktype handling for addresses