Hi everyone! I have very strange connection issue.
I develop android application with smack client library(4.4.6) + openfire server
My device is Samsung s22, android 13, wifi-only (3g - no problems)
I downloaded and installed VPN (before installation → XMPP-connection worked well)
I enabled VPN - all is good
But when i disable VPN - app can’t connect to xmpp (via wifi) with SocketException
Another apps works good (Telegram, WhatsApp, etc)
Any ideas?
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:191)
at java.net.SocketInputStream.read(SocketInputStream.java:143)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:291)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:355)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:181)
at java.io.InputStreamReader.read(InputStreamReader.java:180)
at java.io.BufferedReader.read1(BufferedReader.java:221)
at java.io.BufferedReader.read(BufferedReader.java:298)
at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)
at com.android.org.kxml2.io.KXmlParser.fillBuffer(KXmlParser.java:1516)
at com.android.org.kxml2.io.KXmlParser.peekType(KXmlParser.java:993)
at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:349)
at com.android.org.kxml2.io.KXmlParser.next(KXmlParser.java:313)
at org.jivesoftware.smack.xml.xpp3.Xpp3XmlPullParser.next(Xpp3XmlPullParser.java:228)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPConnection.java:1143)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$700(XMPPTCPConnection.java:916)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnection.java:939)
at java.lang.Thread.run(Thread.java:1012)