How to setup openfire for local environment

I wouldn’t use ‘localhost’ as xmpp domain as it would create problems when trying to connect from virtual machine to that server. Personally i have named my test server same as my machine name (hostname), so clienta installed on the same machine work automatically with such name for the server. But in virtual machines i sill have to use IP to specify host to connect to.