libartnet icon indicating copy to clipboard operation
libartnet copied to clipboard

artnet_new returns empty interface list OSX 10.8/10.9

Open hautetechnique opened this issue 11 years ago • 5 comments

There seems to be a problem initializing the network interfaces on OS X.

The function artnet_net_init fails to find any interfaces. For now i hardcoded the addresses, which works, but is not a great solution.

Does anyone encounter the samen problem or has a solution?

hautetechnique avatar Jan 28 '14 18:01 hautetechnique

It's working on Mavericks for me. What errors do you see? Are you network interfaces up?

nomis52 avatar Jan 29 '14 02:01 nomis52

I the the same problem on iOS because of this:

Two low-level networking APIs that used to return a MAC address now return the fixed value 02:00:00:00:00:00. The APIs in question are sysctl (NET_RT_IFLIST) and ioctl (SIOCGIFCONF). Developers using the value of the MAC address should migrate to identifiers such as -[UIDevice identifierForVendor]. This change affects all apps running on iOS 7

I have not investigated it completely but quick googleing showed the same changes for Mavericks. So what basically happens, when artnet_net_init iterates over the interfaces it only finds lo0.

abusse avatar Mar 09 '14 10:03 abusse

What's the result of artnet_strerror() after the call fails ? Please also paste a link to your config.h file.

nomis52 avatar Mar 10 '14 15:03 nomis52

I have the same issue as abusse mentioned. Whenever I'm trying to initiate artnet_node with current IP address of Wi-Fi interface (en0) on iOS, it only finds lo0 interface and init fails. Are you planning any fix for this issue?

Thanks a lot

Skylare avatar Apr 28 '16 12:04 Skylare

Hi, I had this problem (on OSX 10.11) and it was because I didn't have any config.h file (I was just building the artnet source neat in my project. Including this config.h at the top of network.c seems to have fixed it

timmb avatar Mar 03 '17 20:03 timmb