A tiny #Smithereen update: I've updated the okhttp library from the ancient version I've been using for some reason to the latest (latest 3.x because the newer major releases are in Kotlin). That should fix TLS errors when connecting to some servers.
@grishka I think you can call Kotlin code from Java transparently, no?