I'm facing a challenge with my Bela platform where I'm unable to receive OSC messages sent from MaxMSP. Here's a rundown of the situation:
I have the Bela connected to my laptop (Mac 13.2.1) via usb and ethernet cable. My max patch is also running on the same laptop.

I have a Max patch sending OSC float values to the Bela IP address 192.168.7.1, formatted with /osc

When I run the bela script, all I get in the terminal output is bela: From 127.0.0.1:35613. I have seen other discussion posts detailing the print output was From 192.168.7.1:35613. Why would mine be defaulting to 127.0.0.1?
I am also not receiving the "test" message I send from bela to Max.
I am also connected to my home wifi - not sure if this would be affecting the OSC.
I have also tried settting const char* remoteIp = "0.0.0.0"; which doesn't resolve the issue.
#include <Bela.h>
#include <cmath>
#include <libraries/OscSender/OscSender.h>
#include <libraries/OscReceiver/OscReceiver.h>
OscReceiver oscReceiver;
OscSender oscSender;
int localPort = 7562;
int remotePort = 7563;
const char* remoteIp = "192.168.7.1";
void on_receive(oscpkt::Message* msg, const char* addr, void* arg)
{
printf("From %s\n", addr);
if(msg->match("/osc")) {
float floatArg;
msg->match("/osc").popFloat(floatArg).isOkNoMoreArgs();
printf("received a message with float %f\n", floatArg);
}
}
bool setup(BelaContext *context, void *userData)
{
oscReceiver.setup(localPort, on_receive);
oscSender.setup(remotePort, remoteIp);
oscSender.newMessage("test").send();
return true;
}
void render(BelaContext *context, void *userData)
{
}
void cleanup(BelaContext *context, void *userData)
{
}
I'm puzzled about what might be going wrong and why Bela isn't receiving the messages from MaxMSP. Do I need to be doing something different in my max patch? If anyone has insights or troubleshooting suggestions, it would be greatly appreciated.
Thanks in advance for your help!