EADDRNOTAVAIL when binding 127.0.0.1 on localhost?
- by Jonas Byström
I'm getting errno==49 (EADDRNOTAVAIL) when trying to UDP-bind() to 127.0.0.1:47346 running Mac OS X on a G5 (big endian PowerPC). Is there something preventing me from doing so? I've tried other addresses and ports (192.168.1.2 and port 47346) but with no success.
Here's a gdb printout of my sockaddr_in:
$1 = {
sin_len = 0 '\0',
sin_family =…