Problem with software spark

I have the following problem with the software of spark:

Spark 3.0.2
Ignite Realtime
Apache License, Version 2.0
www.igniterealtime.org
Smack Version: 4.4.6 (4.4.6-4.4 2022-06-29)
JRE Version: 1.8.0_202 32-bit:

I share the log of the spark

Jan 14, 2025 8:10:25 AM org.jivesoftware.spark.util.log.Log error
SEVERE: Exception in Login:
org.jivesoftware.smack.SmackException$EndpointConnectionException: The following addresses failed: ‘RFC 6120 A/AAAA Endpoint + [192.168.1.4:5222] (/192.168.1.4:5222)’ failed because: java.net.ConnectException: Connection timed out: connect
** at org.jivesoftware.smack.SmackException$EndpointConnectionException.from(SmackException.java:334)**
** at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:664)**
** at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:849)**
** at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:526)**
** at org.jivesoftware.gui.LoginUIPanel.login(LoginUIPanel.java:1253)**
** at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)**
** at java.util.concurrent.FutureTask.run(Unknown Source)**
** at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)**
** at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)**
** at java.lang.Thread.run(Unknown Source)**

This is a pretty generic network error. It means that the computer on which Spark is running cannot connect to Openfire that’s running on a different server (that seems to be 192.168.1.4).

As an aside: using IP addresses instead of domain names is a brittle configuration. You should use a proper network name instead of an IP address.

1 Like

What mean a proper network name?

A hosting?

Another server?

A new ip address?

I pay a domain and a hosting (banahosting), how i can configure spark with my domain? what problems exist if change the configuration?

What is the difference between use IP ADDRESS and a domain name for this configuration?

In this part the user have the following problem, he use a domain name but he have other problems:

With a “proper network name” I mean: a domain name. The domain name must be resolvable (to the correct IP address) for any user that needs to be able to connect to the server (as well as any remote servers, if server federation is desired).

This typically takes one of two forms:

  • A domain name that is resolved in the local network
  • A domain name that is registered with a domain registrar (like GoDaddy, Namecheap, etc, etc)

You’ll find more information in Openfire: Network Configuration Guide

1 Like

My DNS is not resolvable

I have 2 DNS

This appears to be an issue with network configuration, not Openfire or Spark. It’s not something that I can help you with, sorry.