I am working on a piece in which data from an SQL database is being read by one laptop (via SQLibrary) and then passed on to 4 other laptops (via OscP5). We are on an ad-hoc wifi network.
I would like to use a multicast address to send the data to all laptops at the same time without collecting ip addresses, which works just fine as long as I am not connected to the internet over ethernet as well (which I need to be, in order to query the SQL database).
How can I specify that the osc messages should be sent over the ad-hoc wifi network (use the wifi card) rather than down the ethernet cable?
Here is an example of code that works to send the messages over the ad-hoc as long as ethernet is unplugged, but seems to default to the ethernet interface when that is connected: