udpsend IPv6

Peter Bamford's icon

Hi - I am on Max7 and I am having problems getting udpsend to resolve an IPv6 address. The patch works fine if I use the IPv4 host address - does udpsend support IPv6?

Zack Steinkamp's icon

While not the same case as yours, it appears to me that Max forces IPv4 when using udpsend/receive.

In my case, I am trying to send OSC from TouchOSC on an iPad to Max on my Mac.

In TouchOSC, I configured the OSC connection with the mdns name of my computer ("music.local."), port 2346. I see TouchOSC sending OSC to the IPv6 address on port 2346, but 'udpreceive' was getting nothing. Looking at the output of "netstat -aln | grep 2346" on the Mac, I see that Max has only set up a v4 listener...

> netstat -aln | grep 2346
udp4 0 0 *.2346 *.*

Other UDP services on the computer will show either "udp6" or "udp46" (indicating support for either v4 or v6).

Changing TouchOSC to use the IPv4 address works, but I have a strong preference for using hostnames.

I will reach out to Cycling 74 about this.