davidepianca98/KMQTT

iOS: Socket Connect failed: Error 1 depending on Network

Opened this issue · 1 comments

Hi, we are using this Library for a internally shared codebase and it works great for Android.

On iOS we have some issues:

  • We can only connect to any (our own or the test.mosquitto.org) MQTT Server by IPv4 Address, not Domain Name (otherwise, if IPv6 is available in the current Network we get the IOException Socket connect failed, error 1)
  • With some Mobile network providers we always get Socket connect failed, error 1 and can't connect at all to any Server

The Error code is EPERM, so "Permission denied" in iOS.

Hello, thank you very much for reporting the issue. I will look into it as soon as I can