Problem of connection between smack abd openfire

Hello,

I am a new user of openfire and smack.

I have installed and configure openfire on my computer and I have changed the port of teh none secure connection to 150.

I can connect in the admintration part of openfire without problem.

I would like to connect to this server with smack, to do that I have written this code lines:


ConnectionConfiguration config2 = new ConnectionConfiguration(“127.0.0.1”, 150);

XMPPConnection connection = new XMPPConnection(config2);

connection.connect();

connection.disconnect();


and I have this error:


Connection failed. No response from server.:
     org.jivesoftware.smack.PacketReader.startup(PacketReader.java:164)
     org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:945)
     org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:904)
     org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1415)
----------------------------------------------------------------------------------------------------

Can someone tell me me what I did wrong?

Thank you very much.

Hello,

I have found my error 150 was the port for the console, the port to connect from a client is 5222.