Is it necessary to setup server before running a smack example?


I am trying to run a simple smack example in my main method. But would it run without setting up any server (like openfire) or anything else? The thing is I don’t know if I need to setup something before running a simple smack example.

2nd question. Can anyone provide me a simple example where I can send and receive a message between two accounts/parties?

Thankyou very much

I don’t need to setup the server. But server has to be somewhere. That’s because you will need to connect to some server (either be openfire or or whatever).