Subject: Re: Finding the correct interface for a packet
To: None <perry@piermont.com>
From: Greg Hudson <ghudson@mit.edu>
List: tech-net
Date: 12/02/1998 00:11:03
Just so people know, connect()ing a UDP socket and calling
getsockname() to get the local interface doesn't work on Solaris 2.0
through 2.5.1 (it works in 2.6) and I've heard it also doesn't work in
winsock.  You always get INADDR_ANY back.

So it's good to have fallback behavior of some kind for broken
systems.