Talk to Core/Photon over Wifi, but no local network available?

Thanks. I’d like to know if I can talk to a Core directly via REST, without going through the cloud. I’m doing that currently on the Arduino Yun. I think I remember seeing someone saying that Spark was working on this a while back. Local REST?