updsend and udpreceive working in Sonoma?

Sarah Angliss's icon

Hello

Does anyone have any experience using udpsend and udpreceive in Max 8.6 for Mac, Sonoma? I have an M1 and M2 Mac connected over Ethernet and have made a really simple patch on one to send integers and a very simple patch on the other to receive them. I have an Ethernet cable between the two Macs - and I assumed this would make it easy to send messages between the two with udp. But I'm getting nothing in the receive patch.

When I go into the settings, I can see Sonoma settings are very different to earlier OSXs so I may have missed an essential step.

I can see the Ethernet is connected. I've set each one using 'Using DHCP with Manual Address' (and I'm hazy on what the right setting should be here).

I've allowed Max to have full disk access on both machines.

I'm struggling to work out what I need to change.

NB I need to use udp as these Macs will be listening to a legacy device, built into an exhibit, that's sending out udp messages.

Any advice gratefully received...
Thanks!
Sarah

{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "number",
				"patching_rect" : [ 452.0, 336.0, 50.0, 22.0 ],
				"numoutlets" : 2,
				"outlettype" : [ "", "bang" ],
				"id" : "obj-4",
				"parameter_enable" : 0,
				"numinlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "loadmess 1",
				"patching_rect" : [ 409.0, 135.0, 70.0, 22.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-3",
				"numinlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "random 5000",
				"patching_rect" : [ 409.0, 305.0, 79.0, 22.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-8",
				"numinlets" : 2
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "toggle",
				"patching_rect" : [ 409.0, 184.0, 24.0, 24.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "int" ],
				"id" : "obj-7",
				"parameter_enable" : 0,
				"numinlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "metro 500",
				"patching_rect" : [ 409.0, 241.0, 63.0, 22.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "bang" ],
				"id" : "obj-5",
				"numinlets" : 2
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "udpsend 192.168.0.53 7400",
				"fontname" : "Arial",
				"patching_rect" : [ 409.0, 373.0, 170.0, 23.0 ],
				"numoutlets" : 0,
				"id" : "obj-24",
				"fontsize" : 13.0,
				"numinlets" : 1
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-8", 0 ],
				"destination" : [ "obj-4", 0 ],
				"order" : 0
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-8", 0 ],
				"destination" : [ "obj-24", 0 ],
				"order" : 1
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-7", 0 ],
				"destination" : [ "obj-5", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-5", 0 ],
				"destination" : [ "obj-8", 0 ]
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-3", 0 ],
				"destination" : [ "obj-7", 0 ]
			}

		}
 ],
	"appversion" : 	{
		"major" : 8,
		"minor" : 6,
		"revision" : 2,
		"architecture" : "x64",
		"modernui" : 1
	}
,
	"classnamespace" : "box"
}
{
	"boxes" : [ 		{
			"box" : 			{
				"maxclass" : "number",
				"patching_rect" : [ 241.0, 213.0, 50.0, 22.0 ],
				"numoutlets" : 2,
				"outlettype" : [ "", "bang" ],
				"id" : "obj-10",
				"parameter_enable" : 0,
				"numinlets" : 1
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "message",
				"text" : "2003",
				"patching_rect" : [ 166.0, 213.0, 50.0, 22.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-6",
				"numinlets" : 2
			}

		}
, 		{
			"box" : 			{
				"maxclass" : "newobj",
				"text" : "udpreceive 7400",
				"patching_rect" : [ 197.0, 146.0, 97.0, 22.0 ],
				"numoutlets" : 1,
				"outlettype" : [ "" ],
				"id" : "obj-1",
				"numinlets" : 1
			}

		}
 ],
	"lines" : [ 		{
			"patchline" : 			{
				"source" : [ "obj-1", 0 ],
				"destination" : [ "obj-6", 1 ],
				"order" : 1
			}

		}
, 		{
			"patchline" : 			{
				"source" : [ "obj-1", 0 ],
				"destination" : [ "obj-10", 0 ],
				"order" : 0
			}

		}
 ],
	"appversion" : 	{
		"major" : 8,
		"minor" : 6,
		"revision" : 2,
		"architecture" : "x64",
		"modernui" : 1
	}
,
	"classnamespace" : "box"
}
Source Audio's icon

1- it is wrong way to upload patches here.

check Select All / Copy Compressed under edit menu

2- just plugging ethernet cable between 2 macs won't establish network connection.

You need to set Ethernet IPv4 Manually.

for example :

mac 1 ipv4

IP 10.10.10.1

Subnet mask 255.255.0.0

Router 10.10.10.0

mac 2

IP 10.10.10.2

the rest same as for mac 1

3- even if you manage all TCP/IP settings, it does not help you for the real goal,

link both macs to that legacy device.

Sarah Angliss's icon

Hello Source Audio

Actually, the legacy device (an old Windows PC for c12 years ago) does work directly with an old intel mac via an Ethernet cable - I made the patches for the Mac myself 10 years ago and set up the networking between the two machines with no problems. And yes, of course I set the IP addresses and so on! I was just wondering if there was a variant of the setup options which now is the only one that's viable.

The issue is that when my patches are transferred to an M1 or M2 Mac the udpreceive doesn't work as it used to. It sometimes works for 20 secs or so, then stops - as though there's some kind of security kicking in but it's not clear where this is. It doesn't work when I send from another Mac to the M1 or M2 either.

Even turning off the Firewall and allowing Max full disk access doesn't fix it. It's very odd and I'm looking for a workaround. Sonoma's Settings are different to earlier OSX settings - and seem to be much more fussy about security, I'm probably missing an extra step. So I'm hoping someone out there with experience of the switch from udp receive on Intel to udp on Silicon Mac (or USP on Sonoma) has a fix. Otherwise I might have to try and find a way rough it without Max. I could bring the data in via another route - but seems over the top.

Source Audio's icon

Can't help you with Silicon machines,

but Sonoma on Intel runs max 8 udp stuff without problems.

On cabled network, wifi or ethernet cable link.

No drops or interrupts noticed no matter if older macs or PC involved.

Sonoma on test mac had firewall disabled.

Sarah Angliss's icon

Fixed it - thanks! Played around with security settings and switched off every security setting in Sonoma I could find until it worked (no problems with this as the system is sitting somewhere well and truly off-grid).

BTW I also moved my files into the Shared folder to get rid of various security issues in Desktop, Documents and Downloads that I couldn't get around. These were making permission popups appear - and this was the easiest workaround.