Not sure what the proper solution is for this, though. I'm not enough of a sockets expert. Although I'm curious why we need to create the socket before we've looked up the name. If we looked up the name first, then we could create the socket with the proper address family in the first place.