Both devices must be connected to same wifi network.
I haven't tried this app myself yet, but I read somewhere in the forum that you can also create wifi by enabling internet sharing on your phone, then connect the other phone to that network and transfer files using this app.