Want to develop a robost application, where most of the communication goes p2p
, not based any private / cloud / apple provided server.
Q1: Is it possible to send data with URLSession.shared.dataTask
method to a device as to a 'server' would? Or need to use 3rd party web sockets stuff?
URLSession.shared.dataTask(with: urlRequest as URLRequest, completionHandler: { data, urlResponse, error in })
Q2: If Q1 is yes, how can device's IP address be fetched? Found this for WiFi based device, but in my device it returns a local IP (192.168.0.2).
Devices are not in close proximit, do not think MultipeerConnectivity
framework helps.
Q3: Do you know any tutorial for beginner how to develop P2P app for iOS?