title: iOS somehow reduce my network speed in Wifi connection to my Camera device in AP
body: <p>I'm developing iOS Application for communication with manufactured Camera via WiFi using custom API.</p>
  <p>I have camera device in Wifi mode AP.
  I'm connecting to that device via Wifi using NEConnection to specific port. TCP protocol.</p>
  <p>We have 2 ports, one for messages other for data transferring.</p>
  <p>Then using API. I'm building specific message, converting them to Data and sending to Camera device. I can receive data or message data from Camera as well.</p>
  <p>I need to download video file with for example 100MB. And it take a lot of time.</p>
  <p>Issue is: While receiving data from device we have speed ± 160 KB/s, but android with the same configurations has 2MB/s.</p>
  <p>Why it happens, does Apple makes some speed limitation? Could it be related to Wifi as it doesn't has internet connection?</p>
  <p>NWConnection constructor:</p>
  <pre><code>static func createConnection(host hostAddress: String, port portInt: UInt16) -&gt; NWConnection {
          let ipv4: IPv4Address = .init(hostAddress) ?? .any
          let host: NWEndpoint.Host = .ipv4(ipv4)
          let port: NWEndpoint.Port = .init(rawValue: portInt) ?? .any
          
          let tcpOptions: NWProtocolTCP.Options = NWProtocolTCP.Options.init()
          
          return .init(host: host, port: port, using: .init(tls: nil, tcp: tcpOptions))
      }
  </code></pre>