You can follow this tutorial.
While this method works, it is not the recommended one as the internal wireless adapter of the Macs is too weak to provide a good signal. If you really need to connect a wireless device with your Mac but don't have a router handy, please follow these instructions:
The method that gave the most satisfactory results to connect a wireless device and OSCulator together is to use a WiFi router: connect the Mac to the WiFi router using an Ethernet cable and connect the iPad to the WiFi router using its wireless network. The router must be configured to allow networking between Ethernet and WiFi interfaces (which is often the case by default).
Check out this thread for more information on WiFi routers.
It is possible that you have an issue with a firewall configured on your machine.
If you are using a third party software to control network communication, you should disable it or set it up in order to accept OSC packets.
Mac OS X includes a basic firewall, which can be configured. Go in the System Preferences, then click on the Security button. From there you will be able to change the firewall's settings, or simply disable it if you are sure you don't need it.
If you are using Mac OS X Snow Leopard, the system will prompt you as soon as it receives a packet from outside. That means that you just have to launch OSCulator, and make the setup as usual.
Under some circumstances, it is possible that OSCulator loses track of the bindings between the two applications. The simple cure is to delete all messages starting with /midi
. OSCulator will recreate them automatically as soon as you start using TouchOSC.
There are two ways of doing this:
./oscbroadcast -s 3333 -t osc.udp://computer-1:8000 -t osc.udp://computer-2:8000
Where 3333 is a free network port, computer-1 and computer-2 are IP addresses or host names of two computers on the local network, and 8000 is the network port on which OSCulator is running.
References: