On Sat, 2010-03-06 at 22:20 -0800, Elliott Slaughter wrote:
Hi,
I'm wondering if there is any way to determine the local host address (or addresses) used when I create a socket with :local-host *wildcard-host* . When I try to call get-local-address on such a socket, I just get #(0 0 0 0).
When you bind a socket to the wildcard address(i.e. 0.0.0.0), you're listening simultaneously on all interfaces so you can't ask for "the" host address because there might be more than just one. Furthermore, the socket doesn't keep trace of the local interfaces that were active when it was created.