Trouble connecting with openfire server

I have installed the Openfire server in an Windows XP Home and wanted to try implement a simple chatroom

using the Smack API.

I used the sample debug script at http://www.javaprogrammingforums.com/java-code-snippets-tutorials/551-how-write- simple-xmpp-jabber-client-using-smack-api.html, but I always getting connection refused error.

I can open the admin page without problem though… I am not sure what could be wrong in the setup…

Can someone help me out?..