Error when trying to open i Spark on Windows 11

Hello, I’m having problems connecting Spark to Windows 11. It works normally on any other Windows.

The message it displays is below.

org.jivesoftware.smack.SmackException$ConnectionException: The following addresses failed: ‘openfire-centos-server:5222’ failed because: java.net.UnknownHostException: openfire-centos-server
at org.jivesoftware.smack.SmackException$ConnectionException.from(SmackException.java:292)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:668)
at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:971)
at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.java:435)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:1108)
at org.jivesoftware.LoginDialog$LoginPanel.access$900(LoginDialog.java:370)
at org.jivesoftware.LoginDialog$LoginPanel$3.construct(LoginDialog.java:910)
at org.jivesoftware.spark.util.SwingWorker.lambda$new$1(SwingWorker.java:139)
at java.lang.Thread.run(Unknown Source)

This appears to be a networking issue. This computer cannot reach the server with the name openfire-centos-server. It might not be able to resolve an IP address for that name.

This problem only happens on machines with Windows 11, I have machines with Windows 10, Windows 8 and Windows 7.

I did the test and put the direct IP of the Server and sometimes it works and sometimes it doesn’t.

I’m going to update Openfire to the latest version and I’ll see if it solves it and if it doesn’t, I’ll let you know again here.