Hi,
You need to use smack-android and call "new AndroidInitializer().initalize()" before you open the connection.
Are you trying to execute your android app inside emulator?
Is your computer behind a proxy firewall?
Is port number 5222, 5223 is allowed to connect from your computer/mobile?
Try setting AllowAllHostnameResolver()
Try switching to 5223 with your custom TLS KeyStore (or "null" TLC Keystore will "null" TrustManager)
Try to download the smack-core, smack-tcp source code and debug using break points and find out the SockAddress, INet4Adress issues generally occurs on core java
Try to write a simple core java Socket code inside your android program and just open and close the socket
Try setting packet reply timeout to 30000