I am trying to connect two iPhones via peerToPeer WiFi connection. Both iPhones use NSNetService. One iPhone publishes the service and the other iPhone browses for the service.
Everything works great when I use streams similarly to WiTap sample. Both via peerToPeer WiFi and when both iPhones are connected to the same local network.
When I use BSD sockets (both for server and client) it works as long as both iPhones are connected to the same network. It never works peer-to-peer with BSD sockets. Client NSNetService resolves the server's service successfully to an IPv6 address but when I try to connect to it I always get a connection timeout.
Is it a known limitation? Any help will be highly appreciated!
Thanks.